Skip to content

Commit

Permalink
make CLI --test flag be true when process.env.SB_TESTBUILD === true
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Nov 16, 2023
1 parent 4c13b24 commit 411202f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/lib/cli/src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,11 @@ command('build')
configDir: 'SBCONFIG_CONFIG_DIR',
});

await build({ ...options, packageJson: pkg }).catch(() => process.exit(1));
await build({
...options,
packageJson: pkg,
test: !!options.test || process.env.SB_TESTBUILD === 'true',
}).catch(() => process.exit(1));
});

program.on('command:*', ([invalidCmd]) => {
Expand Down

0 comments on commit 411202f

Please sign in to comment.