Skip to content

Commit 5b5f012

Browse files
chore: 添加本地全局安装与 link 开发脚本
便于未发布时在本地模拟 npm i -g 及发布前 pack 验收。 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0b77443 commit 5b5f012

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
"scripts": {
1515
"build": "tsc",
1616
"dev": "tsc --watch",
17-
"clean": "rm -rf dist/"
17+
"clean": "rm -rf dist/",
18+
"link:dev": "npm run build && npm link",
19+
"unlink:dev": "npm unlink -g @deckflow/deckhtml",
20+
"global:install": "npm run build && npm install -g .",
21+
"global:uninstall": "npm uninstall -g @deckflow/deckhtml",
22+
"pack:global": "npm run build && npm pack && npm install -g ./deckflow-deckhtml-*.tgz",
23+
"prepublishOnly": "npm run build"
1824
},
1925
"keywords": [
2026
"html",

0 commit comments

Comments
 (0)