Skip to content

Commit bef7f3c

Browse files
committed
Merge branch 'post-milestone3m' of https://github.com/SolidOS/solid-ui into post-milestone3m
2 parents a06e4ad + cf00980 commit bef7f3c

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)