mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 13:01:07 +08:00
Merge pull request #19762 from storybookjs/valentin/fix-windows-prep-build
Fix prepare script on Windows machines
This commit is contained in:
commit
d6d7a500a2
@ -41,7 +41,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
|
||||
const pathName = join(process.cwd(), dir.replace('./src', 'dist'), `${entryName}.d.ts`);
|
||||
const srcName = join(process.cwd(), file);
|
||||
|
||||
const rel = relative(dirname(pathName), dirname(srcName));
|
||||
const rel = relative(dirname(pathName), dirname(srcName)).split(path.sep).join(path.posix.sep);
|
||||
|
||||
await fs.ensureFile(pathName);
|
||||
await fs.writeFile(
|
||||
|
Loading…
x
Reference in New Issue
Block a user