Update publish script to use npm in dist directory

Changed the publish script to run 'npm publish' from the 'dist' directory instead of using 'pnpm publish --filter napcat-types'. This ensures the published package uses the built output.
This commit is contained in:
手瓜一十雪 2026-01-26 19:07:29 +08:00
parent 01da490d92
commit 9c567c2240

View File

@ -10,7 +10,7 @@
"scripts": {
"build": "tsc --project tsconfig.json && tsc-alias --project tsconfig.json --outDir dist && node ./scripts/copy-dist.mjs",
"test": "pnpm -s exec tsc --project tsconfig.json --noEmit",
"publish": "pnpm publish --filter napcat-types"
"publish": "cd dist && npm publish"
},
"dependencies": {
"@types/node": "^22.10.7",