Skip to content

Commit 252217b

Browse files
fix: resolve vsce command path in custom packaging script
The packaging script creates a temp directory without node_modules, so vsce command was not found. Use absolute path to vsce from the parent directory's node_modules. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent a3c57b8 commit 252217b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/package.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ try {
6666
console.log('🔨 Running vsce package...');
6767
const outputPath = path.resolve(outputFile);
6868

69-
execSync(`pnpm exec vsce package --out "${outputPath}"`, {
69+
// Use vsce from the parent directory's node_modules
70+
const vscePath = path.resolve('./node_modules/.bin/vsce');
71+
execSync(`"${vscePath}" package --out "${outputPath}"`, {
7072
cwd: tempDir,
7173
stdio: 'inherit'
7274
});

0 commit comments

Comments
 (0)