[ts] Wire up package.json files for publishing

This commit is contained in:
Mario Zechner 2021-08-31 15:59:39 +02:00
parent de6cee955b
commit a12e26be65
6 changed files with 17 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,9 @@
{
"name": "spine-ts",
"name": "@esotericsoftware/spine-ts",
"version": "4.0.1",
"description": "The official Spine Runtimes for the web.",
"scripts": {
"build": "rm -rf build && concurrently \"npm run build:core\" \"npm run build:canvas\" \"npm run build:webgl\" \"npm run build:player\" \"npm run build:threejs\"",
"build": "rm -rf build && concurrently \"npm run build:core\" \"npm run build:canvas\" \"npm run build:webgl\" \"npm run build:player\" \"npm run build:threejs\" \"npm run build:modules\"",
"build:modules": "tsc -b -clean && tsc -b",
"build:core": "npx esbuild --bundle spine-core/src/index.ts --tsconfig=spine-core/tsconfig.json --sourcemap --outfile=build/spine-core.js --format=iife --global-name=\"spine\"",
"build:canvas": "npx esbuild --bundle spine-canvas/src/index.ts --tsconfig=spine-canvas/tsconfig.json --sourcemap --outfile=build/spine-canvas.js --format=iife --global-name=\"spine\"",

View File

@ -27,10 +27,7 @@
"url": "https://github.com/esotericsoftware/spine-runtimes/issues"
},
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme",
"devDependencies": {
"npx": "^10.2.2",
"rollup": "^2.56.2",
"rollup-plugin-dts": "^3.0.2",
"typescript": "^4.3.5"
"dependencies": {
"@esotericsofware/spine-core": "4.0.1"
}
}

View File

@ -26,5 +26,9 @@
"bugs": {
"url": "https://github.com/esotericsoftware/spine-runtimes/issues"
},
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme"
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme",
"dependencies": {
"@esotericsoftware/spine-core": "4.0.1",
"@esotericsoftware/spine-webgl": "4.0.1"
}
}

View File

@ -35,6 +35,7 @@
},
"dependencies": {
"@types/three": "^0.131.0",
"three": "^0.132.0"
"three": "^0.132.0",
"@esotericsoftware/spine-core": "4.0.1"
}
}

View File

@ -26,5 +26,8 @@
"bugs": {
"url": "https://github.com/esotericsoftware/spine-runtimes/issues"
},
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme"
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme",
"dependencies": {
"@esotericsoftware/spine-core": "4.0.1"
}
}