storybook/docs/snippets/common/storybook-server-framework-options.ts.mdx
2021-09-17 15:54:43 +01:00

12 lines
308 B
Plaintext

```ts
// my-framework/src/server/options.ts
import { sync } from 'read-pkg-up';
export default {
packageJson: sync({ cwd: __dirname }).packageJson,
framework: 'my-framework',
frameworkPath: '@my-framework/storybook',
frameworkPresets: [require.resolve('./framework-preset-my-framework.js')],
};
```