搜索

PythonReactSEOPDF
GitHub Skill

local-package

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.

ClipboardHealth☆ 29 仓库 Stars3 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

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:

  1. Find the package in sibling packages/* directories
  2. Build the package with nx
  3. Push the built package to yalc
  4. Update your package.json to 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:

  1. Make changes to ui-theme in cbh-core

  2. From cbh-mobile-app root, run:

    cbh local-package link --packages ui-theme
    
  3. Test your changes in cbh-mobile-app

  4. 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 install after linking to pull in the yalc version

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-28
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!