Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/scrape.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,7 @@ if (mainNeedsRebuild || preloadNeedsRebuild) {
}

console.log('Starting scrape...');
execSync('electron . --scrape', { stdio: 'inherit', cwd: projectRoot });
// Strip ELECTRON_RUN_AS_NODE — VSCode terminals inherit it and it forces Node-only mode.
const childEnv = { ...process.env };
delete childEnv.ELECTRON_RUN_AS_NODE;
execSync('electron . --scrape', { stdio: 'inherit', cwd: projectRoot, env: childEnv });
4 changes: 4 additions & 0 deletions scripts/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ function setupMainPackageWatcher({ resolvedUrls }) {
}

/** Spawn new electron process */
// Strip ELECTRON_RUN_AS_NODE — VSCode terminals inherit it and it forces Node-only mode.
const childEnv = { ...process.env };
delete childEnv.ELECTRON_RUN_AS_NODE;
electronApp = spawn(String(electronPath), ['--inspect', '.'], {
stdio: 'inherit',
env: childEnv,
});

/** Stops the watch script when the application has been quit */
Expand Down
Loading