返回 Skill 列表
extension
分类: 开发与工程无需 API Key

package-manager

Liftera的pnpm工作区规则。触发条件:在添加依赖项、修改工作区配置或解决安装/lockfile问题时。

person作者: jakexiaohubgithub

Workspace Rules (REQUIRED)

  • ALWAYS keep workspace boundaries defined by pnpm-workspace.yaml.
  • ALWAYS add dependencies to the narrowest scope that needs them:
    • app deps in apps/*/package.json
    • package deps in packages/*/package.json
    • tooling-only deps in root package.json

Installing Dependencies (REQUIRED)

  • ALWAYS use pnpm (repo is configured with packageManager: pnpm@9.0.0).
  • NEVER use npm install or yarn in this repository.

Lockfile & Consistency

  • ALWAYS commit pnpm-lock.yaml when dependencies change.
  • NEVER hand-edit the lockfile.

Filtering & Commands

  • ALWAYS use pnpm filters for app-specific work.
  • Prefer:
    • pnpm dev --filter=web
    • pnpm dev --filter=mobile