Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pnpm-upgrade-package

БесплатноЗапускает вложенные скриптыНе проверен

Upgrade Langfuse workspace dependencies or pnpm itself. Use for release-age and trust checks, dependency ranges, scoped overrides, and package manager pins.

langfuseот langfuse★ 38 069 звёзд на GitHub

Об этом скилле

Upgrade a pnpm package

Ask for the package or target when missing. An explicit request for latest selects the registry's latest dist-tag. From the repo root, run the helper once to inspect the target, workspace references, overrides, patches, release times, and highest stable version that clears the age policy.

node .agents/skills/pnpm-upgrade-package/scripts/check-release-age-window.mjs <package> [targetVersion]

Choose the update

  • For a human choosing upgrades in a terminal, use pnpm update --interactive --latest --long. The Trust column reflects trustPolicy: no-downgrade; the URL column links the package's homepage or repository. For an already selected target, use the explicit version.
  • For transitive updates or overrides, start with pnpm why -r --ranges <package> to see each direct parent's declared range. Use pnpm why -r <package> to trace the full dependency tree when needed.
  • When the parent already allows the target, refresh the lockfile. Otherwise check pnpm view <parent>@latest dependencies peerDependencies optionalDependencies --json. Prefer upgrading the parent when its range admits a fixed version. If the latest parent still pins an affected range, use a parent-scoped override only for a fix within the parent's declared major. Explain the upstream constraint. Ask before taking on a major migration.
  • Limit an override to its intended dependency group when appropriate, e.g. "@prisma/client>prisma:peer": "-". For catalog dependencies, keep catalog: in the package manifests and inspect the catalog entry's diff.
  • If a temporary override is needed to resolve an already-compatible version, remove it and reinstall. Retain it only if the requested version drifts.

Apply and verify a dependency update

  1. Run pnpm install --dry-run --ignore-scripts to see baseline resolver drift. The helper checks publish times. pnpm verifies the trust policy and the full dependency graph.
  2. To replay a past release-age or trust decision, set PNPM_CONFIG_REFERENCE_TIME to the original RFC 3339 timestamp for the helper and the pnpm command in that shell. It anchors both minimumReleaseAge and trustPolicyIgnoreAfter. Use the current clock for ordinary updates.
  3. For an audit fix, run pnpm audit --fix --no-add-release-age-exclusions. Ask before adding exceptions unless the task already authorizes them. Include the exact target, required exact companions, and any exact peers installed in the workspace when they need an exception.
  4. Use pnpm -w up <package>@<version>, pnpm --filter <project> up <package>@<version>, or pnpm -r up <package>@<version> according to the intended scope. --latest can update the override governing a selected dependency. Review the override diff and any warning naming an override pnpm could not update. On a full resolution, investigate unused-override warnings.
  5. Let pnpm generate the lockfile and autoDedupe handle compatible versions. Check the diff for unrelated churn and adjust the command if needed. Run pnpm why -r <package> to verify the versions actually installed.

Upgrade pnpm itself

Run PNPM_CONFIG_PM_ON_FAIL=warn pnpm outdated pnpm for the project pin. The workspace's pmOnFail: ignore omits pnpm from the ordinary report. An outdated package gives exit code 1 and a version table. Resolve the target with the helper and run pnpm self-update <version> at the workspace root. Current pnpm under Corepack updates the project's engines.pnpm and devEngines.packageManager.version and leaves the global launcher alone. Verify both root pins. If an older runner rejects self-update, edit both exact pins in package.json using the existing format.

Update the explicit pnpm@<version> pins in web/Dockerfile, worker/Dockerfile, .devcontainer/Dockerfile, and .cursor/Dockerfile. Check pnpm --version and run pnpm install --frozen-lockfile with the new toolchain. Investigate frozen-install errors before regenerating any lockfile.

Handoff

Report the target, applicable exceptions or retained overrides, and verification. Include a human commit command with the resolved package and version. Use a branch-safe slug for scoped packages and the exact name in the commit message.

git switch -c deps/bump-<package-slug>-to-<version> && git commit -m "chore(deps): bump <package> to <version>" --no-verify
Полный SKILL.md на GitHub

Установить pnpm-upgrade-package в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlscripts/check-release-age-window.mjsscripts/check-release-age-window.test.mjsscripts/lib/workspace-utils.mjs

FAQ

Что делает скилл pnpm-upgrade-package?

Upgrade Langfuse workspace dependencies or pnpm itself. Use for release-age and trust checks, dependency ranges, scoped overrides, and package manager pins.

Как установить скилл pnpm-upgrade-package?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pnpm-upgrade-package запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить pnpm-upgrade-package с