You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Ensure `"moduleResolution": "bundler"` or `"moduleResolution": "node"` is set in your `tsconfig.json`
241
-
- Run `pnpm install` to ensure type definitions are properly linked
245
+
- Run your package-manager install command again to ensure type definitions are properly linked
242
246
243
-
## Development and Contributing
247
+
## Contributing in this repository
244
248
245
-
For development and contributing to the React components:
249
+
If you are contributing to the React library inside this monorepo rather than consuming the published package, use the local development guide instead:
246
250
247
-
1. Clone the repository
248
-
2. Install dependencies: `pnpm install`
249
-
3. Run Storybook: `pnpm storybook`
250
-
4. Make changes in `packages/react-components/`
251
-
5. Run tests: `pnpm test:react-components`
252
-
6. Lint code: `pnpm lint:react-components`
253
-
7. Build all packages: `pnpm build`
254
-
255
-
See the main [README.md](../README.md) for detailed setup instructions and the [contributing guide](../CONTRIBUTING.md) for guidelines.
The monorepo includes an exampleconsumerapp demonstrating usage:
257
+
The monorepo includes `packages/example-react-consumer-app/`, a small standalone app pinned to the latest published React release. It is useful when you want to verify the package in a real consumer setup rather than through a workspace dependency.
260
258
261
259
```bash
262
-
#Run the example app
260
+
#from the repository root
263
261
pnpm dev:react-consumer
264
262
```
265
263
266
-
The example app is located in `packages/example-react-consumer-app/` and shows how to consume the React components in a real application.
264
+
Or run it directly from the app directory:
265
+
266
+
```bash
267
+
cd packages/example-react-consumer-app
268
+
npm install
269
+
npm run dev
270
+
```
267
271
268
272
## Need Help?
269
273
270
-
1.Check the [Storybook](https://github.com/ourfuturehealth/design-system-toolkit#storybook) for component examples
271
-
2. Review the [example consumer app](../packages/example-react-consumer-app/)
274
+
1.Review the [React package README](../packages/react-components/README.md)
275
+
2. Review the [example consumer app README](../packages/example-react-consumer-app/README.md)
272
276
3. Read the [upgrade guide](../UPGRADING.md) for migration instructions
273
277
4. Open an issue on [GitHub](https://github.com/ourfuturehealth/design-system-toolkit/issues)
0 commit comments