diff --git a/.changeset/mean-feet-sing.md b/.changeset/mean-feet-sing.md new file mode 100644 index 00000000..5843c7a5 --- /dev/null +++ b/.changeset/mean-feet-sing.md @@ -0,0 +1,5 @@ +--- +"replayio": minor +--- + +When `RECORD_REPLAY_CHROMIUM_DOWNLOAD_FILE` environment variable is set installs will now always proceed to install the requested version diff --git a/packages/replayio/src/commands/update.ts b/packages/replayio/src/commands/update.ts index aa6bd161..fa1dc6f7 100644 --- a/packages/replayio/src/commands/update.ts +++ b/packages/replayio/src/commands/update.ts @@ -18,7 +18,9 @@ registerCommand("update", { async function update() { try { const [runtimeUpdateCheck, npmUpdateCheck] = await Promise.all([ - checkForRuntimeUpdate(), + process.env.RECORD_REPLAY_CHROMIUM_DOWNLOAD_FILE + ? { hasUpdate: true } + : checkForRuntimeUpdate(), checkForNpmUpdate(), ]);