From 01487637cfd7a5dd08e533d485fa435a042accd2 Mon Sep 17 00:00:00 2001 From: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com> Date: Wed, 9 Apr 2025 09:41:02 -0700 Subject: [PATCH] chore: Add build instructions for single projects. --- CONTRIBUTING.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b1794aafa5..fdf84e631f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -35,6 +35,14 @@ To build all projects, from the root directory: yarn build ``` +To build a single project and all of its dependencies: +``` +yarn workspaces foreach -pR --topological-dev --from '@launchdarkly/js-client-sdk' run build +``` +Replacing `@launchdarkly/js-client-sdk` with the specific package you want to build. + +Running `yarn build` in an individual package will build that package, but will not rebuild any dependencies. + ### Testing 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.