Skip to content

Commit

Permalink
fix: normalize path
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed May 2, 2023
1 parent dea52be commit 67dbeee
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/generate-imports.mjs
Expand Up @@ -175,9 +175,14 @@ await (async () => {
await generateData();
await generateHash();
await Promise.all(
(await glob('lib/**/*.generated.ts'))
(
await glob('lib/**/*.generated.ts')
)
.map((f) => upath.join(f))
.filter((f) => !newFiles.has(f))
.map((file) => fs.remove(file))
.map(async (file) => {
await fs.remove(file);
})
);
} catch (e) {
console.log(e.toString());
Expand Down

0 comments on commit 67dbeee

Please sign in to comment.