Use rimraf and mkdirp in vsix command to avoid misparsing of -p arg and build failure if bin dir exists.

This commit is contained in:
Nissa Seru 2025-02-08 07:26:13 -05:00
parent 3c5dde2a03
commit b6eb80e10d

View file

@ -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",