Skip to content

Commit e93dc35

Browse files
committed
chore(scripts|deps): replace pnpm with npm in scripts
- Switch install and publish scripts from pnpm to npm for consistency. - Update VS Code launch command to use default directory argument. - Simplify development workflow and ensure compatibility with npm-based environments.
1 parent 5781eef commit e93dc35

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,10 @@
444444
"compile": "tsc -p . --outDir out && node esbuild.js",
445445
"dev": "cd webview-ui && npm run dev",
446446
"generate-types": "tsx scripts/generate-types.mts",
447-
"install-e2e": "cd e2e && pnpm install",
448-
"install-extension": "pnpm install",
449-
"install-webview": "cd webview-ui && pnpm install",
450-
"install:all": "pnpm install npm-run-all && npm-run-all -l -p install-*",
447+
"install-e2e": "cd e2e && npm install",
448+
"install-extension": "npm install",
449+
"install-webview": "cd webview-ui && npm install",
450+
"install:all": "npm install npm-run-all && npm-run-all -l -p install-*",
451451
"knip": "knip --include files",
452452
"lint": "npm-run-all -l -p lint:*",
453453
"lint:e2e": "cd e2e && npm run lint",
@@ -456,14 +456,14 @@
456456
"package": "npm-run-all -l -p build:webview build:esbuild check-types lint",
457457
"prepare": "husky",
458458
"pretest": "npm run compile",
459-
"publish": "npm run build && changeset publish && pnpm install --package-lock-only",
459+
"publish": "npm run build && changeset publish && npm install --package-lock-only",
460460
"publish:marketplace": "vsce publish && ovsx publish",
461461
"test": "npm-run-all test:*",
462462
"test:extension": "jest -w=40%",
463463
"test:extension-esm": "vitest run",
464464
"test:webview": "cd webview-ui && npm run test",
465465
"update-contributors": "node scripts/update-contributors.js",
466-
"version-packages": "changeset version && pnpm install --package-lock-only",
466+
"version-packages": "changeset version && npm install --package-lock-only",
467467
"vscode-test": "npm-run-all -l -p vscode-test:*",
468468
"vscode-test:extension": "tsc -p . --outDir out && node esbuild.js",
469469
"vscode-test:webview": "cd webview-ui && npm run build",

scripts/build-then-test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ if (installResult.status !== 0) {
6161

6262
// 5. Launch VS Code for development
6363
console.log("Step 5: Launching VS Code instance for development...")
64-
const cwd = process.cwd()
65-
const devArgs = ["--extensionDevelopmentPath", cwd]
64+
const devArgs = ["."] // Opens current directory in normal VS Code
6665
spawn(codeCmd, devArgs, { shell: true })
6766

6867
console.log("VS Code instance launched. Test your extension there.")

0 commit comments

Comments
 (0)