From 9c567c224037fb6f345e544c134e074c4671d30a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 26 Jan 2026 19:07:29 +0800 Subject: [PATCH] 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. --- packages/napcat-types/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/napcat-types/package.json b/packages/napcat-types/package.json index d1efb5f7..b450c63f 100644 --- a/packages/napcat-types/package.json +++ b/packages/napcat-types/package.json @@ -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",