TypeScript Bump Version
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Set an npm/TypeScript project’s version to an exact literal value across every file that needs to agree with
it: package.json, the lockfile of whichever package manager the project uses, and — optionally — any
README/Antora mentions of the current version. This skill never computes a version itself; it only applies
the exact string it is given, after checking that the string looks like an attempted version at all. React
Native apps are handed to iru-react-native-bump-version, which owns their store-facing version files.
Purpose
iru-typescript-bump-version is the npm-ecosystem equivalent of a Java pom.xml version bump: a small,
deterministic skill that a caller (typically iru-release) can invoke twice per release — once to strip the
pre-release suffix for the release itself, once to open the next development cycle — without either caller
having to know npm/pnpm/yarn’s differing version commands or lockfile quirks. It detects the package manager
in play, hands React Native apps (Expo or bare CLI/Metro) to iru-react-native-bump-version when it is
installed (checked against the skills available in the session, so it also works for plugin installs without
.claude/skills), finds the right package.json (asking when a workspace or a Hilla-managed frontend makes that
ambiguous), and runs that package manager’s own version command so the lockfile stays consistent.
Plugin
Shipped by the iru-typescript plugin of the ai-catalog marketplace (install with /plugin install iru-typescript@ai-catalog; see Plugins).
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
|
Yes |
The exact target version string (e.g. |
None — the skill asks for it if omitted. |
|
No |
Which workspace package to bump, by name or path, when more than one |
None — the skill asks which package (or whether to bump every workspace member in lockstep) when the
repository has more than one and this isn’t given. Forwarded unchanged to |
|
No |
Whether to also update README/Antora mentions of the version (installation snippets, a "Current version"
line, |
Ask — the skill asks once, after checking whether such mentions actually exist, skipping the question if none do. |
Outputs
-
package.jsonupdated to the new version. -
The package manager’s lockfile updated to match, where that package manager’s
versioncommand touches one: npm’spackage-lock.jsonis updated together withpackage.json; pnpm’spnpm-lock.yamland yarn’syarn.lockdo not embed a root version and need no lockfile change (a straypackage-lock.jsonfound in a pnpm project is flagged instead). -
Optionally,
README.md,docs/antora.yml, and/or Antora pages with a literal dependency/version snippet, ifsync-fileswas accepted. -
A report of the old and new version, every file actually changed, anything skipped and why, and which parts of the process were verified locally (npm, pnpm) versus not (Yarn Classic/Berry) and should be spot-checked.
-
For a React Native app with
iru-react-native-bump-versioninstalled: that skill’s report is relayed instead. Without it, onlypackage.jsonand the lockfile are updated and the report states prominently that the app’s shipped version (expo.versionor the nativeversionName/MARKETING_VERSION) was not touched. -
No commit or git tag is created — this skill only edits files.
Execution flow
Dependencies
Invokes
-
React Native Bump Version — Step 0.5, for React Native apps (
react-nativeorexpoindependencies), when installed; receives the same arguments and its report is relayed. React Native libraries stay in this skill.
Otherwise it only runs package-manager commands and edits files directly.
Invoked by
-
Release — Step 6, version bump for TypeScript/npm projects.
-
React Native Bump Version — hands a React Native library (no app config or native app project) back here, since it is an ordinary npm package.
Source
SKILL.md on GitHub — the file this page was generated from.