From 6b34244809bb0a7e67b18087b59aac6edb963441 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Tue, 4 Jul 2023 15:27:35 +0200 Subject: [PATCH] Only run Storybook scoped packages via verdaccio --- scripts/utils/yarn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils/yarn.ts b/scripts/utils/yarn.ts index 05e785ed4476..9cdeff5b835c 100644 --- a/scripts/utils/yarn.ts +++ b/scripts/utils/yarn.ts @@ -79,7 +79,7 @@ export const configureYarn2ForVerdaccio = async ({ cwd, dryRun, debug }: YarnOpt `yarn config set enableGlobalCache false`, `yarn config set enableMirror false`, // ⚠️ Need to set registry because Yarn 2 is not using the conf of Yarn 1 (URL is hardcoded in CircleCI config.yml) - `yarn config set npmRegistryServer http://localhost:6001/`, + `yarn config set npmScopes --json '{ "storybook": { "npmRegistryServer": "http://localhost:6001/" } }'`, // Some required magic to be able to fetch deps from local registry `yarn config set unsafeHttpWhitelist --json '["localhost"]'`, // Disable fallback mode to make sure everything is required correctly