npm包发布配置更改

This commit is contained in:
YHH
2025-08-11 10:03:19 +08:00
parent 5bce08683a
commit 6a49f6a534
4 changed files with 12 additions and 2 deletions

View File

@@ -32,8 +32,12 @@
"prepare:publish": "npm run build:npm && node scripts/pre-publish-check.cjs", "prepare:publish": "npm run build:npm && node scripts/pre-publish-check.cjs",
"sync:versions": "node scripts/sync-versions.cjs", "sync:versions": "node scripts/sync-versions.cjs",
"publish:all": "npm run prepare:publish && lerna publish", "publish:all": "npm run prepare:publish && lerna publish",
"publish:core": "cd packages/core && npm run build:npm && npm publish", "publish:core": "cd packages/core && npm run publish:npm",
"publish:core:patch": "cd packages/core && npm version patch && npm run build:npm && npm publish", "publish:core:patch": "cd packages/core && npm run publish:patch",
"publish:math": "cd packages/math && npm run publish:npm",
"publish:math:patch": "cd packages/math && npm run publish:patch",
"publish:network": "cd packages/network && npm run publish:npm",
"publish:network:patch": "cd packages/network && npm run publish:patch",
"publish": "lerna publish", "publish": "lerna publish",
"version": "lerna version" "version": "lerna version"
}, },

View File

@@ -37,6 +37,10 @@
"build:watch": "tsc --watch", "build:watch": "tsc --watch",
"rebuild": "npm run clean && npm run build", "rebuild": "npm run clean && npm run build",
"build:npm": "npm run build && node build-rollup.cjs", "build:npm": "npm run build && node build-rollup.cjs",
"publish:npm": "npm run build:npm && cd dist && npm publish",
"publish:patch": "npm version patch && npm run build:npm && cd dist && npm publish",
"publish:minor": "npm version minor && npm run build:npm && cd dist && npm publish",
"publish:major": "npm version major && npm run build:npm && cd dist && npm publish",
"preversion": "npm run rebuild", "preversion": "npm run rebuild",
"test": "jest --config jest.config.cjs", "test": "jest --config jest.config.cjs",
"test:watch": "jest --watch --config jest.config.cjs", "test:watch": "jest --watch --config jest.config.cjs",

View File

@@ -29,6 +29,7 @@
"build:watch": "tsc --watch", "build:watch": "tsc --watch",
"rebuild": "npm run clean && npm run build", "rebuild": "npm run clean && npm run build",
"build:npm": "npm run build && node build-rollup.cjs", "build:npm": "npm run build && node build-rollup.cjs",
"publish:npm": "npm run build:npm && cd dist && npm publish",
"test": "jest --config jest.config.cjs", "test": "jest --config jest.config.cjs",
"test:watch": "jest --watch --config jest.config.cjs", "test:watch": "jest --watch --config jest.config.cjs",
"test:coverage": "jest --coverage --config jest.config.cjs", "test:coverage": "jest --coverage --config jest.config.cjs",

View File

@@ -28,6 +28,7 @@
"build:watch": "tsc --watch", "build:watch": "tsc --watch",
"rebuild": "npm run clean && npm run build", "rebuild": "npm run clean && npm run build",
"build:npm": "npm run build && node build-rollup.cjs", "build:npm": "npm run build && node build-rollup.cjs",
"publish:npm": "npm run build:npm && cd dist && npm publish",
"test": "jest --config jest.config.cjs", "test": "jest --config jest.config.cjs",
"test:watch": "jest --watch --config jest.config.cjs", "test:watch": "jest --watch --config jest.config.cjs",
"test:coverage": "jest --coverage --config jest.config.cjs", "test:coverage": "jest --coverage --config jest.config.cjs",