Skip to content

Commit

Permalink
Only run Storybook scoped packages via verdaccio
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Jul 4, 2023
1 parent d4a3a23 commit 6b34244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/utils/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b34244

Please sign in to comment.