Skip to content

Commit

Permalink
more dryRun behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Jan 25, 2024
1 parent cf47228 commit 61dcae1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions publish/utils/json-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class JSONFile<T extends object = Record<string, unknown>> {
if (this.#lastKnown === strData) {
throw new Error(`Should not write when not updating contents`);
}
this.#lastKnown = strData;
const fileHandle = await this.#getHandle();
await Bun.write(fileHandle, strData);
}
Expand Down

0 comments on commit 61dcae1

Please sign in to comment.