Skip to content

Commit 87aab56

Browse files
committed
fix: 修复主包 prepublishOnly 无效导致子包产物无法被构建问题
1 parent 6d7ff0c commit 87aab56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"play:build:h5": "npm -C playground run build:h5",
1313
"play:mp-weixin": "npm -C playground run dev:mp-weixin",
1414
"play:build:mp-weixin": "npm -C playground run build:mp-weixin",
15-
"prepublishOnly": "pnpm build",
1615
"test": "vitest",
1716
"typecheck": "tsc --noEmit",
1817
"lint": "eslint .",

packages/core/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
],
4242
"scripts": {
4343
"build": "unbuild",
44-
"stub": "unbuild --stub"
44+
"stub": "unbuild --stub",
45+
"prepublishOnly": "pnpm build"
4546
},
4647
"dependencies": {
4748
"@antfu/utils": "^0.7.2",

0 commit comments

Comments
 (0)