Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-31 00:17:43 +00:00
parent dfd5b3bcaa
commit 20442da91f
21 changed files with 418 additions and 2 deletions

29
tldr/npm-version Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm version
> Bump a node package version.
> More information: <https://docs.npmjs.com/cli/commands/npm-version>.
- Check current version:
`npm version`
- Bump the minor version:
`npm version minor`
- Set a specific version:
`npm version {{version}}`
- Bump the patch version without creating a Git tag:
`npm version patch --no-git-tag-version`
- Bump the major version with a custom commit message:
`npm version major -m "{{Upgrade to %s for reasons}}"`