Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .changeset/heavy-flies-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"varlock": patch
---

Fix assertion failure on Windows when varlock cli exits
2 changes: 0 additions & 2 deletions packages/varlock/src/cli/cli-executable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,11 @@ subCommands.set('telemetry', buildLazyCommand(telemetryCommandSpec, async () =>
suggestion: `Run \`${fmt.command('varlock --help', { jsPackageManager: true })}\` for more info.`,
});
console.error(badCommandErr.getFormattedOutput());
gracefulExit(1);
} else if (error instanceof CliExitError || error instanceof InvalidEnvError) {
// in watch mode, we just log but do not actually exit
console.error(error.getFormattedOutput());
// TODO: we'll probably want to implement watch mode, so it wont actually exit
// process.exit(1);
gracefulExit(1);
} else {
throw error;
}
Expand Down
Loading