From df938d6ee833ded59f6d12528105e6165ed76a92 Mon Sep 17 00:00:00 2001 From: matt korwel Date: Mon, 16 Jun 2025 08:27:29 -0700 Subject: Preflight and integration npx (#1096) --- scripts/build_sandbox.js | 2 +- scripts/start.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/build_sandbox.js b/scripts/build_sandbox.js index 59177e8f..c6a16c23 100644 --- a/scripts/build_sandbox.js +++ b/scripts/build_sandbox.js @@ -107,7 +107,7 @@ function buildImage(imageName, dockerfile) { const buildCommand = sandboxCommand === 'podman' ? `${sandboxCommand} build --authfile=<(echo '{}')` - : `${sandboxCommand} --config=".docker" buildx build`; + : `${sandboxCommand} build`; const npmPackageVersion = JSON.parse( readFileSync(join(process.cwd(), 'package.json'), 'utf-8'), diff --git a/scripts/start.js b/scripts/start.js index 64dccd76..6a5445f3 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -64,4 +64,8 @@ const env = { DEV: 'true', }; -spawn('node', nodeArgs, { stdio: 'inherit', env }); +const child = spawn('node', nodeArgs, { stdio: 'inherit', env }); + +child.on('close', (code) => { + process.exit(code); +}); -- cgit v1.2.3