Skip to content

Commit e36f3b5

Browse files
committed
chore: 指定要包含的文件以及新增脚本
1 parent c6f965c commit e36f3b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"bin": {
2121
"create-web-app": "index.js"
2222
},
23+
"files": ["dist", "index.js", "template-*"],
2324
"scripts": {
2425
"dev": "unbuild --stub",
2526
"build": "unbuild",
@@ -28,6 +29,7 @@
2829
"typecheck": "tsc --noEmit",
2930
"bumpp": "bumpp",
3031
"clean": "rimraf dist node_modules **/node_modules",
32+
"prepublishOnly": "npm run build",
3133
"test:version": "unbuild && node index.js -v",
3234
"test:help": "unbuild && node index.js -h",
3335
"test:prompt": "unbuild && node index.js --debug=prompts",

0 commit comments

Comments
 (0)