A collection of configurations:
@acme/storybook-config/main
@acme/storybook-config/preview
Install the package into the consuming app/lib configuration.
If in a turborepo:
// package.json
{
"devDependencies": {
"@acme/storybook-config": "*"
// ...
}
}
If NOT in a Turborepo:
yarn add -D @acme/storybook-config
Use the package withing the consuming app/lib configuration.
// .storybook/main.js
module.exports = require('@acme/storybook-config/main');
// .storybook/preview.js
import * as sharedConfig from '@acme/storybook-config/preview';
export const parameters = sharedConfig.parameters;