
local-package
by ClipboardHealth
Clipboard's core libraries and utilities.
SKILL.md
name: local-package description: Use Clipboard's internal CLI to link and unlink @clipboard-health packages across repositories for local development. Use when testing local package changes, linking @clipboard-health packages between repos, or using the cbh CLI local-package command.
Local Package Development
Use Clipboard's internal CLI (@clipboard-health/cli) to test package changes across repositories without publishing. The cbh local-package command wraps yalc to simplify linking packages between sibling repositories.
Prerequisites
See the CLI README for setup instructions.
Commands
Link packages
From the consuming repository, link packages from sibling repos:
cbh local-package link --packages <package-names...>
Example:
cbh local-package link --packages ui-theme ui-components
This will:
- Find the package in sibling
packages/*directories - Build the package with nx
- Push the built package to yalc
- Update your
package.jsonto use the yalc version
Unlink packages
After testing, restore the published package versions:
cbh local-package unlink --packages <package-names...>
Example:
cbh local-package unlink --packages ui-theme ui-components
Workflow Example
To test changes to ui-theme in cbh-mobile-app:
-
Make changes to
ui-themeincbh-core -
From
cbh-mobile-approot, run:cbh local-package link --packages ui-theme -
Test your changes in
cbh-mobile-app -
When done, unlink:
cbh local-package unlink --packages ui-theme
Troubleshooting
- Package not found: Ensure the package exists in a sibling repo's
packages/directory - Build fails: The package must have a valid nx build target
- Changes not reflected: Run
npm installafter linking to pull in the yalc version
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon