Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Sep 16, 2022
1 parent f868d66 commit d9d6b4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ async function updatePackageScripts({ cwd, prefix }: { cwd: string; prefix: stri
const packageJson = await readJSON(packageJsonPath);
packageJson.scripts = {
...packageJson.scripts,
storybook: packageJson.scripts.storybook.replace(/(npx )?storybook/, `${prefix} $&`),
storybook: packageJson.scripts.storybook.replace(/(npx )?storybook/, `${prefix} storybook`),
'build-storybook': packageJson.scripts['build-storybook'].replace(
/(npx )?storybook/,
`${prefix} $&`
`${prefix} storybook`
),
};
await writeJSON(packageJsonPath, packageJson, { spaces: 2 });
Expand Down

0 comments on commit d9d6b4a

Please sign in to comment.