mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 03:09:39 -06:00
Fix the name of the file to be deleted when doing baseline accept (#51705)
This commit is contained in:
parent
8036b149a4
commit
f636fc1846
@ -805,7 +805,7 @@ function baselineAcceptTask(localBaseline, refBaseline) {
|
||||
}
|
||||
const toDelete = await glob(`${localBaseline}/**/*.delete`, { nodir: true });
|
||||
for (const p of toDelete) {
|
||||
const out = localPathToRefPath(p);
|
||||
const out = localPathToRefPath(p).replace(/\.delete$/, "");
|
||||
await fs.promises.rm(out);
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user