From a056d2af2250c415ed701b0b6744c8b79842fd37 Mon Sep 17 00:00:00 2001 From: johnsoncodehk Date: Fri, 3 Mar 2023 00:19:38 +0800 Subject: [PATCH] chore: add pre-release scripts --- package.json | 4 ++++ packages/vscode-typescript-vue-plugin/package.json | 3 ++- packages/vscode-vue/package.json | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 688a8dd204..f5f1a01740 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/packages/vscode-typescript-vue-plugin/package.json b/packages/vscode-typescript-vue-plugin/package.json index 84a3870ecf..15f51a2e91 100644 --- a/packages/vscode-typescript-vue-plugin/package.json +++ b/packages/vscode-typescript-vue-plugin/package.json @@ -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" diff --git a/packages/vscode-vue/package.json b/packages/vscode-vue/package.json index 0d229a3cee..2adf8269ff 100644 --- a/packages/vscode-vue/package.json +++ b/packages/vscode-vue/package.json @@ -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": {