Skip to content

Commit

Permalink
Force installs with RECORD_REPLAY_CHROMIUM_DOWNLOAD_FILE (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored Dec 12, 2024
1 parent 82852c2 commit 5f5859d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/mean-feet-sing.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion packages/replayio/src/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]);

Expand Down

0 comments on commit 5f5859d

Please sign in to comment.