Skip to content

Commit 42bccd3

Browse files
Run npm install before build when updating InterBrain
Ensures new dependencies are installed before rebuilding the plugin, fixing issues where updates with new packages wouldn't work until manually running npm install. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent fdb7945 commit 42bccd3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/services/git-service.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,12 @@ export class GitService {
911911
console.log(`GitService: Using npm at: ${npmPath}`);
912912
console.log(`GitService: Enhanced PATH: ${enhancedEnv.PATH}`);
913913

914+
// Run npm install first to ensure dependencies are up to date
915+
console.log(`GitService: Running npm install for ${fullPath}...`);
916+
await execAsync(`${npmPath} install`, { cwd: fullPath, env: enhancedEnv });
917+
console.log(`GitService: npm install completed`);
918+
919+
// Then run the build
914920
await execAsync(`${npmPath} run build`, { cwd: fullPath, env: enhancedEnv });
915921
console.log(`GitService: Successfully built: ${fullPath}`);
916922
} catch (error) {

0 commit comments

Comments
 (0)