Skip to content

Commit ca63a4b

Browse files
committed
Remove lock
1 parent 3c591e9 commit ca63a4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/run-prettier.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { type InstalledPrettier } from "./install-prettier.ts";
55
import { prepareRepository } from "./prepare-repository.ts";
66
import { commitChanges } from "./utilities.ts";
77
import { Timing } from "./timing.ts";
8+
import fs from "node:fs/promises";
89

910
async function runPrettierWithVersion({
1011
cwd,
@@ -44,6 +45,8 @@ async function runPrettierWithVersion({
4445
}
4546
}
4647

48+
await fs.rm(path.join(cwd, "yarn.lock"), { force: true });
49+
4750
const commitHash = await commitChanges(cwd, prettier.version.kind);
4851

4952
await spawn("git", ["branch", prettier.version.kind], { cwd });

0 commit comments

Comments
 (0)