Skip to content

Commit 5cb00cb

Browse files
authored
chore: Add build instructions for single projects. (#819)
Add some additional build information to the contributing documentation.
1 parent 1a6cac7 commit 5cb00cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ To build all projects, from the root directory:
3535
yarn build
3636
```
3737

38+
To build a single project and all of its dependencies:
39+
```
40+
yarn workspaces foreach -pR --topological-dev --from '@launchdarkly/js-client-sdk' run build
41+
```
42+
Replacing `@launchdarkly/js-client-sdk` with the specific package you want to build.
43+
44+
Running `yarn build` in an individual package will build that package, but will not rebuild any dependencies.
45+
3846
### Testing
3947

4048
Unit tests should be implemented in a `__tests__` folder in the root of the package. The directory structure inside of `__tests__` should mirror that of the source directory.

0 commit comments

Comments
 (0)