Skip to content

Commit aa1ede7

Browse files
committed
add release package script
1 parent 7653507 commit aa1ede7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"build:esm": "tsc --project ./esm.json && echo '{\\n \"type\": \"module\"\\n}' > dist/esm/package.json",
2222
"build:cjs": "tsc --project ./commonjs.json && echo '{\\n \"type\": \"commonjs\"\\n}' > dist/commonjs/package.json",
2323
"dev": "cd example; npm run dev",
24+
"alpha": "rm -rf dist && npm run build && npm run test && npm version prerelease --preid alpha && npm publish --tag alpha && git push --tags",
25+
"release": "rm -rf dist && npm run build && npm run test && npm version patch && npm publish && git push --tags",
26+
"test": "cd example && npm run lint",
2427
"typecheck": "tsc --noEmit",
2528
"prepare": "npm run build"
2629
},

0 commit comments

Comments
 (0)