Skip to content

Commit f636fc1

Browse files
authored
Fix the name of the file to be deleted when doing baseline accept (#51705)
1 parent 8036b14 commit f636fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Herebyfile.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ function baselineAcceptTask(localBaseline, refBaseline) {
805805
}
806806
const toDelete = await glob(`${localBaseline}/**/*.delete`, { nodir: true });
807807
for (const p of toDelete) {
808-
const out = localPathToRefPath(p);
808+
const out = localPathToRefPath(p).replace(/\.delete$/, "");
809809
await fs.promises.rm(out);
810810
}
811811
};

0 commit comments

Comments
 (0)