@releasekit/version 0.3.0-next.0 → 0.3.0-next.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.
@@ -183,14 +183,11 @@ function log(message, level = "info") {
183
183
  default:
184
184
  chalkFn = chalk.blue;
185
185
  }
186
+ const formattedMessage = level === "debug" ? `[DEBUG] ${message}` : message;
186
187
  if (isJsonOutputMode()) {
187
- if (level === "error") {
188
- chalkFn(message);
189
- console.error(message);
190
- }
188
+ console.error(chalkFn(formattedMessage));
191
189
  return;
192
190
  }
193
- const formattedMessage = level === "debug" ? `[DEBUG] ${message}` : message;
194
191
  if (level === "error") {
195
192
  console.error(chalkFn(formattedMessage));
196
193
  } else {
package/dist/cli.cjs CHANGED
@@ -271,14 +271,11 @@ function log(message, level = "info") {
271
271
  default:
272
272
  chalkFn = import_chalk.default.blue;
273
273
  }
274
+ const formattedMessage = level === "debug" ? `[DEBUG] ${message}` : message;
274
275
  if (isJsonOutputMode()) {
275
- if (level === "error") {
276
- chalkFn(message);
277
- console.error(message);
278
- }
276
+ console.error(chalkFn(formattedMessage));
279
277
  return;
280
278
  }
281
- const formattedMessage = level === "debug" ? `[DEBUG] ${message}` : message;
282
279
  if (level === "error") {
283
280
  console.error(chalkFn(formattedMessage));
284
281
  } else {
package/dist/cli.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  log,
7
7
  printJsonOutput
8
- } from "./chunk-4OGOAITO.js";
8
+ } from "./chunk-ZEXPJ53Z.js";
9
9
  import "./chunk-GQLJ7JQY.js";
10
10
  import "./chunk-LMPZV35Z.js";
11
11
 
package/dist/index.cjs CHANGED
@@ -210,14 +210,11 @@ function log(message, level = "info") {
210
210
  default:
211
211
  chalkFn = import_chalk.default.blue;
212
212
  }
213
+ const formattedMessage = level === "debug" ? `[DEBUG] ${message}` : message;
213
214
  if (isJsonOutputMode()) {
214
- if (level === "error") {
215
- chalkFn(message);
216
- console.error(message);
217
- }
215
+ console.error(chalkFn(formattedMessage));
218
216
  return;
219
217
  }
220
- const formattedMessage = level === "debug" ? `[DEBUG] ${message}` : message;
221
218
  if (level === "error") {
222
219
  console.error(chalkFn(formattedMessage));
223
220
  } else {
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  enableJsonOutput,
11
11
  getJsonData,
12
12
  loadConfig
13
- } from "./chunk-4OGOAITO.js";
13
+ } from "./chunk-ZEXPJ53Z.js";
14
14
  import {
15
15
  BaseVersionError
16
16
  } from "./chunk-GQLJ7JQY.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/version",
3
- "version": "0.3.0-next.0",
3
+ "version": "0.3.0-next.1",
4
4
  "description": "Semantic versioning based on Git history and conventional commits",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",