Skip to content

Commit a877377

Browse files
committed
added build pkg in package.json
1 parent 3792bff commit a877377

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@
3333
"fix:prettier": "prettier --write .",
3434
"check:language-extensions": "tsc --strict language-extensions/index.d.ts",
3535
"preversion": "npm run build && npm test",
36-
"postversion": "git push && git push --tags"
36+
"postversion": "git push && git push --tags",
37+
"build-pkg": "tsc && npm run build-lualib && pkg ."
3738
},
38-
"pkg": {
39-
"assets": [
39+
"pkg": {
40+
"assets": [
4041
"dist/lualib/**/*",
4142
"node_modules/typescript/lib/**/*.d.ts"
4243
],
4344
"targets": [
4445
"node16-win-x64"
4546
],
46-
"outputPath": "bin"
47+
"outputPath": "dist"
4748
},
4849
"bin": {
49-
"tstl": "dist/tstl.js",
50-
"app": "dist/tstl.js"
50+
"app": "dist/tstl.js"
5151
},
5252
"engines": {
5353
"node": ">=16.10.0"
@@ -78,6 +78,7 @@
7878
"jest-circus": "^29.5.0",
7979
"lua-types": "^2.13.0",
8080
"lua-wasm-bindings": "^0.3.1",
81+
"pkg": "^5.8.1",
8182
"prettier": "^2.8.4",
8283
"ts-jest": "^29.1.0",
8384
"ts-node": "^10.9.1",

0 commit comments

Comments
 (0)