Configuration (inkbridge.config.json)
Control which component paths the scanner searches, which files to exclude, and whether to require Storybook stories.
How it works
`inkbridge setup` auto-generates `inkbridge.config.json` in your project root by reading the `stories` globs in `.storybook/main.ts`. The file has three fields: `componentPaths` (array of directories to scan), `exclude` (file/directory names to skip), and `onlyWithStories` (boolean — when true, only components that have a matching `.stories.tsx` file are included). You can edit this file freely; the scanner re-reads it on every scan.
Usage
- 1
After running `pnpm exec inkbridge setup`, open `inkbridge.config.json` in your project root.
- 2
Edit `componentPaths` to list every directory the scanner should search (e.g. `["src/components", "src/features"]`).
- 3
Add directory or file names to `exclude` to skip them (e.g. `["ui", "index"]` to skip `src/components/ui`).
- 4
Set `onlyWithStories: true` (default) to only include components that have a matching `.stories.tsx` file — recommended to keep the design system focused.
- 5
Set `onlyWithStories: false` to include all components regardless of whether they have stories.
- 6
The scanner re-reads `inkbridge.config.json` on every scan — no server restart needed.