package-versioner 0.1.0 → 0.1.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/dist/index.cjs CHANGED
@@ -58,7 +58,7 @@ var import_figlet = __toESM(require("figlet"), 1);
58
58
  var package_default = {
59
59
  name: "package-versioner",
60
60
  description: "A powerful CLI tool for automated semantic versioning based on Git history and conventional commits. Supports monorepos with synchronized or independent package versioning strategies.",
61
- version: "0.0.2",
61
+ version: "0.1.0",
62
62
  type: "module",
63
63
  main: "./dist/index.js",
64
64
  module: "./dist/index.mjs",
@@ -217,18 +217,22 @@ async function gitProcess({ files, nextTag, commitMessage, skipHooks, dryRun })
217
217
  message: commitMessage,
218
218
  skipHooks
219
219
  });
220
- const tagMessage = `New Version ${nextTag} generated at ${(/* @__PURE__ */ new Date()).toISOString()}`;
221
- await createGitTag({
222
- tag: nextTag,
223
- message: tagMessage
224
- });
220
+ if (nextTag) {
221
+ const tagMessage = `New Version ${nextTag} generated at ${(/* @__PURE__ */ new Date()).toISOString()}`;
222
+ await createGitTag({
223
+ tag: nextTag,
224
+ message: tagMessage
225
+ });
226
+ }
225
227
  } else {
226
228
  log("info", "[DRY RUN] Would add files:");
227
229
  for (const file of files) {
228
230
  log("info", ` - ${file}`);
229
231
  }
230
232
  log("info", `[DRY RUN] Would commit with message: "${commitMessage}"`);
231
- log("info", `[DRY RUN] Would create tag: ${nextTag}`);
233
+ if (nextTag) {
234
+ log("info", `[DRY RUN] Would create tag: ${nextTag}`);
235
+ }
232
236
  }
233
237
  } catch (err) {
234
238
  console.log(err);
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ import figlet from "figlet";
35
35
  var package_default = {
36
36
  name: "package-versioner",
37
37
  description: "A powerful CLI tool for automated semantic versioning based on Git history and conventional commits. Supports monorepos with synchronized or independent package versioning strategies.",
38
- version: "0.0.2",
38
+ version: "0.1.0",
39
39
  type: "module",
40
40
  main: "./dist/index.js",
41
41
  module: "./dist/index.mjs",
@@ -194,18 +194,22 @@ async function gitProcess({ files, nextTag, commitMessage, skipHooks, dryRun })
194
194
  message: commitMessage,
195
195
  skipHooks
196
196
  });
197
- const tagMessage = `New Version ${nextTag} generated at ${(/* @__PURE__ */ new Date()).toISOString()}`;
198
- await createGitTag({
199
- tag: nextTag,
200
- message: tagMessage
201
- });
197
+ if (nextTag) {
198
+ const tagMessage = `New Version ${nextTag} generated at ${(/* @__PURE__ */ new Date()).toISOString()}`;
199
+ await createGitTag({
200
+ tag: nextTag,
201
+ message: tagMessage
202
+ });
203
+ }
202
204
  } else {
203
205
  log("info", "[DRY RUN] Would add files:");
204
206
  for (const file of files) {
205
207
  log("info", ` - ${file}`);
206
208
  }
207
209
  log("info", `[DRY RUN] Would commit with message: "${commitMessage}"`);
208
- log("info", `[DRY RUN] Would create tag: ${nextTag}`);
210
+ if (nextTag) {
211
+ log("info", `[DRY RUN] Would create tag: ${nextTag}`);
212
+ }
209
213
  }
210
214
  } catch (err) {
211
215
  console.log(err);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "package-versioner",
3
3
  "description": "A powerful CLI tool for automated semantic versioning based on Git history and conventional commits. Supports monorepos with synchronized or independent package versioning strategies.",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",