mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 10:46:28 -05:00
Fix the name of the file to be deleted when doing baseline accept (#51705)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user