Skip to content

Commit

Permalink
chore(build): make writefile path compatible posix and windows system (
Browse files Browse the repository at this point in the history
…#13270)

Co-authored-by: Gareth Jones <Jones258@Gmail.com>
  • Loading branch information
weidehai and G-Rath committed Sep 17, 2022
1 parent 698a34e commit 60e6870
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/bundleTs.mjs
Expand Up @@ -201,7 +201,10 @@ const excludedPackages = new Set(['@jest/globals']);
});

await fs.promises.writeFile(
filepath.replace('/dist/', '/build/'),
filepath.replace(
`${path.sep}dist${path.sep}`,
`${path.sep}build${path.sep}`,
),
formattedContent,
);
}),
Expand Down

0 comments on commit 60e6870

Please sign in to comment.