Skip to content

Commit

Permalink
fix: able to skip update check (#468)
Browse files Browse the repository at this point in the history
Co-authored-by: Jordy Quak <[email protected]>
  • Loading branch information
jrquak and Jordy Quak authored Jul 25, 2024
1 parent 8ef37fc commit d914e75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bb-components-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ program
'the runtime option to build for',
'v1',
)
.option('--offline', 'skip update check')
.option('--fast', 'Build the last edited component.')
.parse(process.argv);

Expand All @@ -73,6 +74,7 @@ const enableNewTranspile = !!options.transpile;
const arg = process.argv.slice(2);
const startTime = Date.now();
const buildAll = !arg.includes('--fast');
const hasOfflineFlag = arg.includes('--offline');

/* execute command */

Expand Down Expand Up @@ -364,7 +366,9 @@ const readInteractions: () => Promise<Interaction[]> = async (): Promise<

// eslint-disable-next-line no-void
void (async (): Promise<void> => {
await checkUpdateAvailableCLI();
if (!hasOfflineFlag) {
await checkUpdateAvailableCLI();
}

const { runtimeVersion = 'v1' } = options;

Expand Down

0 comments on commit d914e75

Please sign in to comment.