Update package dependencies and scripts; add 'shx' for shell command execution in package.json
Some checks failed
Need fix to Issue / main (push) Has been cancelled
Internal - Main - Continuous Integration / ci (push) Failing after 0s
Internal - Main - Continuous Integration / release (push) Has been cancelled
Mark stale issues and pull requests / main (push) Failing after 0s

This commit is contained in:
2025-08-03 04:01:10 +07:00
parent 1372c61353
commit 00ad5b1134
4 changed files with 259 additions and 11 deletions

View File

@@ -34,12 +34,13 @@
"@ts-dev-tools/core": "^1.6.2",
"@vercel/ncc": "^0.38.3",
"eslint-plugin-github": "^6.0.0",
"eslint-plugin-jsonc": "^2.20.1"
"eslint-plugin-jsonc": "^2.20.1",
"shx": "^0.4.0"
},
"scripts": {
"package": "npm run package:index && npm run package:post",
"package:index": "ncc build src/index.ts -o dist --license licenses.txt",
"package:post": "ncc build src/post.ts -o dist/post && mv dist/post/index.js dist/post.js && rm -rf dist/post",
"package:post": "ncc build src/post.ts -o dist/post && shx mv dist/post/index.js dist/post.js && shx rm -rf dist/post",
"package:watch": "npm run package -- --watch",
"lint": "eslint \"src/**/*.{ts,tsx}\"",
"all": "npm run format && npm run lint && npm run test && npm run package",