Skip to content

Commit cf00980

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 9d4f371 commit cf00980

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ Consumers never import from `dist/v2/components/...`; that path is an internal b
346346

347347
When adding a new v2 component:
348348

349-
1. Create the component folder under `src/v2/components/<ComponentName>/` with its `index.ts` entrypoint.
350-
2. Add one record to `scripts/component-manifest.mjs`.
349+
1. Create the component folder under `src/v2/components/` with its `index.ts` entrypoint. Components can be grouped in nested directories such as `src/v2/components/forms/select/`, `src/v2/components/auth/loginButton/`, or `src/v2/components/layout/header/`.
350+
2. Add one record to `scripts/component-manifest.mjs`. If the component lives in a nested directory, set its `sourcePath` in the manifest to match that grouped path.
351351
3. Run `npm run sync-component-exports` if you want to update `package.json` immediately, or just run `npm run build` and let the build do it automatically.
352352

353353
You should not need to hand-edit the webpack component entry list or the `package.json` component export map anymore.

0 commit comments

Comments
 (0)