跳到正文
cccskills
免费在 GitHub 公开

pnpm

Use when managing Node.js dependencies with pnpm - provides workspace setup, catalogs, CLI commands, overrides, and CI configuration

中文简介正在准备中。当前显示原文说明。

集成工具Docker
查看安装方法

包含的文件(5)

  • SKILL.md2.3 KB
  • references/ci.md4.2 KB
  • references/cli.md4.0 KB
  • references/features.md4.1 KB
  • references/workspaces.md4.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

pnpm

Content-addressable store, strict deps, workspace protocol, catalogs.

When to Use

  • Installing/managing npm packages
  • Monorepo workspace setup with catalogs
  • Overriding transitive dependencies
  • Patching third-party packages
  • CI/CD configuration for pnpm projects
  • Supply chain security hardening

Quick Start

pnpm install                      # Install deps
pnpm add <pkg>                    # Add dep
pnpm add -D <pkg>                 # Dev dep
pnpm -r run build                 # Run in all packages
pnpm --filter @myorg/app build    # Run in specific package

Workspace Setup

# pnpm-workspace.yaml
packages:
  - 'packages/*'
  - 'apps/*'

# Catalogs for centralized version management
catalog:
  react: ^18.2.0
  typescript: ~5.3.0
// package.json - Use workspace protocol and catalogs
{
  "packageManager": "pnpm@10.28.2",
  "dependencies": {
    "@myorg/utils": "workspace:^",
    "react": "catalog:"
  }
}

Reference Files

TaskFile
Commands, scripts, filteringcli.md
Workspaces, catalogs, configworkspaces.md
Overrides, patches, hooks, storefeatures.md
CI/CD, Docker, migrationci.md

Loading Files

Consider loading these reference files based on your task:

DO NOT load all files at once. Load only what's relevant to your current task.

Cross-Skill References

  • TypeScript libs → Use ts-library skill for library patterns
  • Build tooling → Use tsdown or vite skills

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

vue

免费

Use when editing .vue files, creating Vue 3 components, writing composables, or testing Vue code - provides Composition API patterns, props/emits best practices, VueUse integration, and reactive destructuring guidance

中文简介正在准备中。当前显示原文说明。

valibali/hamledger102026年2月6日 更新

查看 valibali 的全部技能

报告此技能的问题