From b6eb80e10d24b77bf67f4fe133ea0b3670fff577 Mon Sep 17 00:00:00 2001 From: Nissa Seru <119150866+nissa-seru@users.noreply.github.com> Date: Sat, 8 Feb 2025 07:26:13 -0500 Subject: [PATCH] Use `rimraf` and `mkdirp` in `vsix` command to avoid misparsing of `-p` arg and build failure if `bin` dir exists. --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9efe5b87dd..97cca7d8c0 100644 --- a/package.json +++ b/package.json @@ -283,7 +283,7 @@ "publish": "npm run build && changeset publish && npm install --package-lock-only", "version-packages": "changeset version && npm install --package-lock-only", "vscode:prepublish": "npm run package", - "vsix": "mkdir -p bin && npx vsce package --out bin", + "vsix": "rimraf bin && mkdirp bin && npx vsce package --out bin", "watch": "npm-run-all -p watch:*", "watch:esbuild": "node esbuild.js --watch", "watch:tsc": "tsc --noEmit --watch --project tsconfig.json", @@ -350,6 +350,8 @@ "@vscode/test-cli": "^0.0.9", "@vscode/test-electron": "^2.4.0", "esbuild": "^0.24.0", + "mkdirp": "^3.0.1", + "rimraf": "^6.0.1", "eslint": "^8.57.0", "husky": "^9.1.7", "jest": "^29.7.0",