fix: pre-publish and post-publish hooks

This commit is contained in:
Simon
2026-04-12 03:16:13 +08:00
parent 4d27d49752
commit acfb336a9a
11 changed files with 86 additions and 103 deletions

View File

@@ -49,8 +49,8 @@
"scripts": {
"build": "vite build",
"dev:iife": "concurrently \"vite build --config vite.iife.config.js --watch\" \"npx serve dist/iife -p 5174\"",
"prepublishOnly": "node ../../scripts/prepare-publish.js",
"postpublish": "node ../../scripts/restore-dev.js"
"prepublishOnly": "node ../../scripts/pre-publish.js",
"postpublish": "node ../../scripts/post-publish.js"
},
"dependencies": {
"chalk": "^5.6.2",