Install yarn (>v1.7.0)
npm i -g yarnyarn installyarn cosmos
To install a specific package to all workspaces
yarn add -DW ${package}
To install a specific package to a specific workspace
yarn workspace @newfrontdoor/${workspace} add ${package} {--dev}
When importing other packages within the ui library, make sure they have been bundled.
Either run yarn install, (or yarn prepare, which runs after install)
If you make a change to a package you depend on,
make sure you run yarn prepare to ensure the changes have been bundled
- Create a branch with your changes
- From the root of the monorepo, run
yarn changesetand follow the prompts - Create a Pull Request with the generated changeset, and your changes
- Merge your Pull Request once the tests pass
- Once merged, the release workflow will start
- A "Version Packages" PR will be created from any unreleased changesets
- Once you're ready to release your changes, merge the "Version Packages" PR