Skip to content

Commit d8e2a36

Browse files
committed
refactor(satellite): remove NODE_ENV to allow devDependencies installation
1 parent 3b0416e commit d8e2a36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/satellite/src/process/nsjail-spawner.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,9 @@ export class ProcessSpawner {
396396
...baseEnv,
397397
'-E', 'HOME=/build',
398398
'-E', 'NPM_CONFIG_CACHE=/build/.npm',
399-
'-E', 'NPM_CONFIG_UPDATE_NOTIFIER=false',
400-
'-E', 'NODE_ENV=production'
399+
'-E', 'NPM_CONFIG_UPDATE_NOTIFIER=false'
400+
// NODE_ENV=production removed - it prevents devDependencies installation
401+
// which breaks TypeScript builds that need @types/node
401402
];
402403
} else {
403404
return [

0 commit comments

Comments
 (0)