From 1e77308f5d3ed4c580d03a2b240b22b2e621b885 Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Wed, 14 Jun 2023 11:01:10 +0200 Subject: [PATCH] Build: Use local registry for all packages Including sb and storybook outside of the storybook scope --- code/lib/cli/src/repro-generators/scripts.ts | 2 +- scripts/utils/yarn.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/lib/cli/src/repro-generators/scripts.ts b/code/lib/cli/src/repro-generators/scripts.ts index 4893e81fd2da..fc601a6c7ece 100644 --- a/code/lib/cli/src/repro-generators/scripts.ts +++ b/code/lib/cli/src/repro-generators/scripts.ts @@ -147,7 +147,7 @@ const configureYarn2ForE2E = async ({ cwd }: Options) => { // eslint-disable-next-line @typescript-eslint/no-shadow const command = [ // ⚠️ 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 npmScopes --json '{ "storybook": { "npmRegistryServer": "http://localhost:6001/" } }'`, + `yarn config set 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 diff --git a/scripts/utils/yarn.ts b/scripts/utils/yarn.ts index 9cdeff5b835c..05e785ed4476 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 npmScopes --json '{ "storybook": { "npmRegistryServer": "http://localhost:6001/" } }'`, + `yarn config set 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