Skip to content

Commit 0a047d0

Browse files
committed
chore: 优化publish命令代码
1 parent bb6e715 commit 0a047d0

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
"vite6",
2323
"turbo"
2424
],
25+
"publishConfig": {
26+
"access": "public",
27+
"registry": "https://registry.npmjs.org/"
28+
},
2529
"scripts": {
2630
"dev": "turbo run dev",
2731
"dev:docs": "pnpm -F @mylib/docs run dev",

packages/directives/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"build": "rm -rf dist && rollup -c rollup.config.mjs",
1313
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
14-
"publish": "pnpm publish --access public --registry https://registry.npmjs.org"
14+
"publish": "pnpm publish"
1515
},
1616
"devDependencies": {
1717
"@mylib/typescript-config": "workspace:*",

packages/hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"build": "rm -rf dist && rollup -c rollup.config.mjs",
1313
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
14-
"publish": "pnpm publish --access public --registry https://registry.npmjs.org"
14+
"publish": "pnpm publish"
1515
},
1616
"devDependencies": {
1717
"@mylib/typescript-config": "workspace:*",

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"scripts": {
2222
"build": "rm -rf dist && vite build",
2323
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
24-
"publish": "pnpm publish --access public --registry https://registry.npmjs.org"
24+
"publish": "pnpm publish"
2525
},
2626
"devDependencies": {
2727
"@mylib/typescript-config": "workspace:*",

packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"build": "rm -rf dist && rollup -c rollup.config.mjs",
1313
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
14-
"publish": "pnpm publish --access public --registry https://registry.npmjs.org"
14+
"publish": "pnpm publish"
1515
},
1616
"devDependencies": {
1717
"@mylib/typescript-config": "workspace:*",

0 commit comments

Comments
 (0)