fix(cli): add prepublishOnly to ensure build before publish

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yunfei He
2026-05-24 23:04:56 +08:00
parent 0854ef4828
commit 15cf216291
+2 -1
View File
@@ -18,7 +18,8 @@
},
"scripts": {
"build": "vp pack",
"dev": "vp pack --watch"
"dev": "vp pack --watch",
"prepublishOnly": "vp run build"
},
"dependencies": {
"vite": "catalog:"