Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: able to skip update check #468

Merged
merged 1 commit into from
Jul 25, 2024
Merged
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
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
Loading