Skip to content

Commit 80c4aff

Browse files
authored
bun-pm-version: add page (#19749)
1 parent a4fed82 commit 80c4aff

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pages/common/bun-pm-version.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# bun pm version
2+
3+
> Manage the `version` field in `package.json`.
4+
> More information: <https://bun.com/docs/pm/cli/pm#version>.
5+
6+
- Display the current package version:
7+
8+
`bun pm version`
9+
10+
- Set a specific version:
11+
12+
`bun pm version {{9.0.1}}`
13+
14+
- Bump the version using a semantic version type (`major`, `minor`, `patch`, etc.):
15+
16+
`bun pm version {{major|minor|patch|premajor|preminor|prepatch|prerelease}}`
17+
18+
- Set the version based on Git tags:
19+
20+
`bun pm version from-git`

0 commit comments

Comments
 (0)