release-it 16.2.0 → 16.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +4 -2
- package/lib/index.js +2 -2
- package/lib/plugin/factory.js +1 -0
- package/package.json +5 -5
package/lib/cli.js
CHANGED
|
@@ -26,9 +26,11 @@ const helpText = `Release It! v${pkg.version}
|
|
|
26
26
|
|
|
27
27
|
For more details, please see https://github.com/release-it/release-it`;
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const version = () => log.log(`v${pkg.version}`);
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const help = () => log.log(helpText);
|
|
32
34
|
|
|
33
35
|
export default async options => {
|
|
34
36
|
if (options.version) {
|
package/lib/index.js
CHANGED
|
@@ -70,9 +70,9 @@ const runTasks = async (opts, di) => {
|
|
|
70
70
|
const incrementBase = { latestVersion, increment, isPreRelease, preReleaseId };
|
|
71
71
|
|
|
72
72
|
const { snapshot } = config.options;
|
|
73
|
-
if (snapshot && !incrementBase.latestVersion.startsWith('0.0.0')) {
|
|
73
|
+
if (snapshot && (!incrementBase.latestVersion.startsWith('0.0.0') || incrementBase.latestVersion === '0.0.0')) {
|
|
74
74
|
// Reading the latest version first allows to increment the final counter, fake it if it's not a snapshot:
|
|
75
|
-
incrementBase.latestVersion = `0.0.0
|
|
75
|
+
incrementBase.latestVersion = `0.0.0-0`;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
let version;
|
package/lib/plugin/factory.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-it",
|
|
3
|
-
"version": "16.2.
|
|
3
|
+
"version": "16.2.1",
|
|
4
4
|
"description": "Generic CLI tool to automate versioning and package publishing-related tasks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -97,15 +97,15 @@
|
|
|
97
97
|
"eslint-plugin-ava": "14.0.0",
|
|
98
98
|
"eslint-plugin-import": "2.28.1",
|
|
99
99
|
"eslint-plugin-prettier": "5.0.0",
|
|
100
|
-
"fs-monkey": "1.0.
|
|
101
|
-
"knip": "2.
|
|
102
|
-
"memfs": "4.
|
|
100
|
+
"fs-monkey": "1.0.5",
|
|
101
|
+
"knip": "2.29.0",
|
|
102
|
+
"memfs": "4.5.0",
|
|
103
103
|
"mock-stdio": "1.0.3",
|
|
104
104
|
"nock": "13.3.3",
|
|
105
105
|
"prettier": "3.0.3",
|
|
106
106
|
"remark-cli": "11.0.0",
|
|
107
107
|
"remark-preset-webpro": "0.0.3",
|
|
108
|
-
"sinon": "
|
|
108
|
+
"sinon": "16.0.0",
|
|
109
109
|
"strip-ansi": "7.1.0"
|
|
110
110
|
},
|
|
111
111
|
"overrides": {
|