diff --git a/scripts/utils/yarn.ts b/scripts/utils/yarn.ts index 6543e32aa9a2..b572813ca086 100644 --- a/scripts/utils/yarn.ts +++ b/scripts/utils/yarn.ts @@ -64,7 +64,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