Skip to content

Commit

Permalink
chore: add pre-release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Mar 2, 2023
1 parent 6966ee5 commit a056d2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"release:base": "lerna publish --exact --force-publish --yes --sync-workspace-lock",
"release:vue": "cd ./packages/vscode-vue && npm run release",
"release:typescript-vue-plugin": "cd ./packages/vscode-typescript-vue-plugin && npm run release",
"release:next": "npm run release:next-base && npm run release:next-vue && npm run release:next-typescript-vue-plugin",
"release:next-base": "npm run release:base -- --dist-tag next",
"release:next-vue": "cd ./packages/vscode-vue && npm run release:next",
"release:next-typescript-vue-plugin": "cd ./packages/vscode-typescript-vue-plugin && npm run release:next",
"test": "vitest run",
"chrome": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=./packages/vscode-vue ../volar-starter"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/vscode-typescript-vue-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"watch": "npm run esbuild -- --watch",
"esbuild": "node scripts/build-node",
"pack": "vsce package",
"release": "vsce publish"
"release": "vsce publish",
"release:next": "vsce publish --pre-release"
},
"dependencies": {
"typescript-vue-plugin-forward": "file:typescript-vue-plugin-forward"
Expand Down
1 change: 1 addition & 0 deletions packages/vscode-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@
"prepack": "npm run prebuild && npm run build -- --minify",
"pack": "npm run prepack && vsce package",
"release": "npm run prepack && vsce publish",
"release:next": "npm run release -- --pre-release",
"bundle-size": "npm run prepack:bundle-size && esbuild-visualizer --metadata ./meta.json && open ./stats.html"
},
"devDependencies": {
Expand Down

0 comments on commit a056d2a

Please sign in to comment.