From e0a6b4097e59273897c773c381b9fe792a415b53 Mon Sep 17 00:00:00 2001 From: merceyz Date: Wed, 5 Oct 2022 21:43:55 +0200 Subject: [PATCH] fix(cli): don't use `npx` in scripts --- code/lib/cli/src/js-package-manager/JsPackageManager.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/lib/cli/src/js-package-manager/JsPackageManager.ts b/code/lib/cli/src/js-package-manager/JsPackageManager.ts index 85aed958e766..e83f6fd59083 100644 --- a/code/lib/cli/src/js-package-manager/JsPackageManager.ts +++ b/code/lib/cli/src/js-package-manager/JsPackageManager.ts @@ -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({