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 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
- export let version = () => log.log(`v${pkg.version}`);
29
+ /** @internal */
30
+ export const version = () => log.log(`v${pkg.version}`);
30
31
 
31
- export let help = () => log.log(helpText);
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-${snapshot}.-1`;
75
+ incrementBase.latestVersion = `0.0.0-0`;
76
76
  }
77
77
 
78
78
  let version;
@@ -40,6 +40,7 @@ const load = async pluginName => {
40
40
  return [getPluginName(pluginName), plugin];
41
41
  };
42
42
 
43
+ /** @internal */
43
44
  export const getPluginName = pluginName => {
44
45
  if (pluginName.startsWith('.')) {
45
46
  return path.parse(pluginName).name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-it",
3
- "version": "16.2.0",
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.4",
101
- "knip": "2.19.1",
102
- "memfs": "4.4.0",
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": "15.2.0",
108
+ "sinon": "16.0.0",
109
109
  "strip-ansi": "7.1.0"
110
110
  },
111
111
  "overrides": {