ワンクリックで
updating-dependencies
Updating catalog dependencies to latest minor/patch versions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Updating catalog dependencies to latest minor/patch versions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Coding patterns and conventions (package design, types, DI, docs)
Creating a new package in the monorepo
Running CI locally with Dagger
Debugging (source maps, cache, test failures)
DevContainer runtimes, CLI tools, and version parity with Dagger
Installing a package dependency
SOC 職業分類に基づく
| name | updating-dependencies |
| description | Updating catalog dependencies to latest minor/patch versions |
This workspace uses a centralized catalog: section in pnpm-workspace.yaml for all dependency versions. Updating a version there updates it across all packages in the monorepo.
The most common flow is bumping minor/patch dependencies, which should be non-breaking and safe to roll out. Instructions are described in the first part of this file.
Instructions for bumping major versions are in the second part.
pnpm outdated -r --format json
5.x → 6.x, 9.x → 10.x)0.x packages, compare the first digit: 0.7 → 0.8 is still 0.x, so apply itpnpm-workspace.yamlEdit the catalog: section (and catalogs: — that's for local package aliases, and gets out of sync after publishing):
catalog:
some-package: ^<new-latest-version>
Only update packages with minor/patch bumps. Leave major-bump packages at their current version.
From the JSON output, find packages where:
dependencyType !== "devDependencies" (including regular dependencies as well as peer + optional dependencies)Collect all dependentPackages[].name values from those entries.
Create .changeset/<unique-name>.md (adjective-noun-verb format):
---
"package-a": minor
"package-b": patch
---
Update dependencies: <list updated packages and new versions>
Affected packages get a minor bump if the dependency is a "peer" or "optional" dependency.
They get a patch if it is present in "depenencies"
Ignore projects in the /leyman directory, those are not publicly published and do not need to abide by semver.
pnpm i
Will replace downloaded packages with latest versions across all packages.
pnpm outdated -r
Only major-version packages should remain in the outdated list.
test-only
Assuming tests were stable, and all changes were non-breaking, tests should continue to pass with latest versions.
The build process should also generate a new .pnpm-lock-hash for affected packages as well, signaling NX's cache has been successfully updated.
If tests fail, report them to the user so they can iterate on solving. Some may as trivial as small lint/formatting changes, some may require unexpected refactors that should require intentional input.
Then run
test-and-fix
Which will then also perform linting and reformat files.
If the linter has any failures, again report them to the user.
Only update major versions that are explicitly requested. This will usually come with breaking changes that will need to be handled safely, and may be intentionally avoided if the breaking changes are not currently mitigatable.
pnpm outdated -r --format json
Find the latest version for the requested package. It should be a major bump from what is in pnpm-workspace.yaml. If it is just a minor/patch update, proceed with instructions following Steps For non-major updates above.
pnpm-workspace.yamlEdit the catalog: section (and catalogs: if already listed there):
catalog:
some-package: ^<new-latest-version>
From the JSON output, find packages where:
dependencyType !== "devDependencies" (including regular dependencies as well as peer + optional dependencies)Collect all dependentPackages[].name values from those entries.
Create .changeset/<unique-name>.md (adjective-noun-verb format):
---
"package-a": minor
"package-b": patch
---
Update dependencies: <list updated packages and new versions>
Affected packages get a minor bump if the dependency is a "peer" or "optional" dependency.
They get a patch if it is present in "depenencies"
Ignore projects in the /leyman directory, those are not publicly published and do not need to abide by semver.
pnpm i
Will replace downloaded package with latest versions across all packages.
pnpm outdated -r
Requested package should no longer show up in the report.
test-ci
Because of possible breaking changes, this command may break. Report failures, so developer can iterate on possible solutions.