Configuration
Full registry-build config reference with a generic-first shape, collection docs, and legacy compatibility notes.
The full config reference. For new non-UI consumers, start with
collections. The
older UI-shaped fields still work, but they're a compatibility surface — not the
recommended starting point.Minimal generic shape
import { defineConfig } from '@gentleduck/registry-build'
export default defineConfig({
extends: ['./registry-build.base.ts'],
collections: {},
output: {
dir: './dist',
},
performance: {},
branding: {},
extensions: [],
})
For a UI/docs registry,
sources, registries, targetPaths, importMappings,
componentIndex, colors, themes, and the related fields still work through the
compatibility layer.Generic-first reference
UI compatibility reference
These fields are still important for docs-style UI registries. They are supported today, but they should be understood as a compatibility layer on top of the emerging generic core.
Rule of thumb
- Start new package or repository indexes from
collections. - Use compatibility fields only when you are deliberately building the UI/docs registry shape.
- Put static values in config and computed behavior in extensions.
- Keep extension output names explicit so the build summary stays readable.