Skip to content

Commit

Permalink
Merge pull request #19366 from merceyz/merceyz/fix/no-npx-in-scripts
Browse files Browse the repository at this point in the history
CLI: remove `npx` usage from storybook scripts
  • Loading branch information
yannbf authored Oct 11, 2022
2 parents c9ebf3d + e0a6b40 commit c49de7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/lib/cli/src/js-package-manager/JsPackageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,12 @@ export abstract class JsPackageManager {
}) {
const sbPort = options?.port ?? 6006;
const storybookCmd = options?.staticFolder
? `npx storybook dev -p ${sbPort} -s ${options.staticFolder}`
: `npx storybook dev -p ${sbPort}`;
? `storybook dev -p ${sbPort} -s ${options.staticFolder}`
: `storybook dev -p ${sbPort}`;

const buildStorybookCmd = options?.staticFolder
? `npx storybook build -s ${options.staticFolder}`
: `npx storybook build`;
? `storybook build -s ${options.staticFolder}`
: `storybook build`;

const preCommand = options?.preCommand ? this.getRunCommand(options.preCommand) : undefined;
this.addScripts({
Expand Down

0 comments on commit c49de7d

Please sign in to comment.