3.3.14 • Published 4 months ago

@werk/command-version v3.3.14

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

Werk Version Command

Update versions.

npm werk

Install

npm i -D @werk/command-version

Set Versions

werk version 1.2.3

Bump Versions

werk version patch

This command is using the semver package inc() function.

The basic bump types are as follows.

  • major: 1.2.3 → 2.0.0 → 3.0.0
  • minor: 1.2.3 → 1.3.0 → 1.4.0
  • patch: 1.2.3 → 1.2.4 → 1.2.5
  • premajor: 1.2.3 → 2.0.0-0 → 3.0.0-0
  • preminor: 1.2.3 → 1.3.0-0 → 1.4.0-0
  • prepatch: 1.2.3 → 1.2.4-0 → 1.2.5-0
  • prerelease: 1.2.3 → 1.2.4-0 → 1.2.4-1

Use the --preid option to set the prerelease identifier.

  • premajor --preid=alpha: 1.2.3 → 2.0.0-alpha.0 → 3.0.0-alpha.0
  • preminor --preid=alpha: 1.2.3 → 1.3.0-alpha.0 → 1.4.0-alpha.0
  • prepatch --preid=alpha: 1.2.3 → 1.2.4-alpha.0 → 1.2.5-alpha.0
  • prerelease --preid=alpha: 1.2.3 → 1.2.4-alpha.0 → 1.2.4-alpha.1

Note the difference between prepatch and prerelease. The former will always bump the patch number and reset the prerelease number to zero. The later will only bump the patch number if the current version is not a prerelease, and will increment the prerelease number otherwise.

Bump Versions Automatically

If you're using Git with conventional commit messages, you can use the auto bump type to automatically choose the correct bump level.

werk version auto

This will also update the CHANGELOG.md file, unless the --no-changelog flag is set.

Note: The auto bump type is intended for releases, so the --preid option is not supported. While working with prereleases, use the basic bump command instead.

Note: The auto bump type requires a Git repository with a clean working tree.

Dependents

When a workspace version update is greater than a patch, any dependent workspaces will also be updated so that they have a minimum dependency on the new version, and the dependent's version will also be minimally (prerelease or patch number) bumped.

Graduating Prereleases

When the current version is a prerelease, the version command will refuse to bump the version to a non-prerelease version. This is to prevent accidentally releasing a prerelease version. You need to explicitly set or bump the version to a non-prerelease in this case.

3.3.14

4 months ago

3.3.13

5 months ago

3.3.11

5 months ago

3.3.12

5 months ago

3.3.9

5 months ago

3.3.10

5 months ago

3.3.8

5 months ago

3.1.12

8 months ago

3.1.11

8 months ago

3.1.14

7 months ago

3.1.13

8 months ago

3.1.10

8 months ago

1.3.10

8 months ago

3.3.7

5 months ago

3.1.9

8 months ago

3.3.6

5 months ago

3.1.8

8 months ago

2.0.0

8 months ago

3.2.2

7 months ago

3.0.4

8 months ago

3.2.1

7 months ago

3.0.3

8 months ago

3.2.0

7 months ago

3.0.2

8 months ago

3.0.1

8 months ago

3.0.6

8 months ago

3.2.3

7 months ago

3.0.5

8 months ago

3.0.0

8 months ago

1.3.9

8 months ago

1.3.8

9 months ago

1.3.7

10 months ago

1.3.6

10 months ago

1.3.5

10 months ago

1.3.4

10 months ago

1.3.3

10 months ago

1.3.2

10 months ago

3.3.1

7 months ago

3.1.3

8 months ago

3.3.0

7 months ago

3.1.2

8 months ago

3.1.1

8 months ago

3.1.0

8 months ago

3.1.7

8 months ago

3.3.4

6 months ago

3.1.6

8 months ago

3.3.3

6 months ago

3.1.5

8 months ago

3.3.2

7 months ago

3.1.4

8 months ago

1.2.7

10 months ago

1.2.6

10 months ago

1.2.5

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.4

11 months ago

1.2.3

11 months ago

1.2.2

11 months ago

1.2.1

11 months ago

1.2.0

11 months ago

1.0.26

11 months ago

1.0.25

11 months ago

1.0.24

11 months ago

1.0.23

11 months ago

1.0.22

11 months ago

1.0.21

11 months ago

1.0.20

11 months ago

1.0.19

11 months ago

1.0.18

11 months ago

1.0.17

11 months ago

1.0.16

11 months ago

1.0.15

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago