storybook/scripts/verdaccio.yaml
Gaëtan Maisse d7687ade18
refactor: replace semver by @storybook/semver
`@storybook/semver` is a browser friendly fork of `semver`.
We use it to avoid issue with IE11 as classic "compiled" `semver` is now compatible with it.
If we just recompile `semver` from `node_modules` it ends with a package that `require('core-js')` but `core-js` is not listed in the dependency. And so Yarn 2 throw an error.
So to avoid that we need to use a "proper" dependency which is `semver` recompile and with all needed dependencies in its package.json.
2020-06-03 20:07:07 +02:00

69 lines
1.1 KiB
YAML

storage: .verdaccio-cache
auth:
auth-memory:
users:
foo:
name: foo
password: s3cret
bar:
name: bar
password: s3cret
uplinks:
npmjs:
url: https://registry.npmjs.org/
cache: true
packages:
# storybook's 'legacy' packages
'@storybook/react-simple-di':
access: $all
publish: $all
proxy: npmjs
'@storybook/react-stubber':
access: $all
publish: $all
proxy: npmjs
# storybook's packages not hosted in this monorepo
'@storybook/csf':
access: $all
publish: $all
proxy: npmjs
'@storybook/semver':
access: $all
publish: $all
proxy: npmjs
'@storybook/preset-*':
access: $all
publish: $all
proxy: npmjs
# storybook packages are NOT proxied to global registry
# allowing us to republish any version during tests
'@storybook/*':
access: $all
publish: $all
'sb':
access: $all
publish: $all
'storybook':
access: $all
publish: $all
'@*/*':
access: $all
publish: $all
proxy: npmjs
'**':
access: $all
publish: $all
proxy: npmjs
logs:
- { type: stdout, format: pretty, level: warn }