bumpp 9.5.0 → 9.5.2

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.
@@ -825,6 +825,8 @@ async function getCurrentVersion(operation) {
825
825
  filesToCheck.push("package.json");
826
826
  if (!filesToCheck.includes("deno.json"))
827
827
  filesToCheck.push("deno.json");
828
+ if (!filesToCheck.includes("deno.jsonc"))
829
+ filesToCheck.push("deno.jsonc");
828
830
  for (const file of filesToCheck) {
829
831
  const version = await readVersion(file, cwd);
830
832
  if (version) {
@@ -1087,6 +1089,7 @@ function hasScript(manifest, script) {
1087
1089
 
1088
1090
  // src/update-files.ts
1089
1091
  import * as path2 from "path";
1092
+ import { existsSync } from "fs";
1090
1093
  async function updateFiles(operation) {
1091
1094
  const { files } = operation.options;
1092
1095
  for (const relPath of files) {
@@ -1106,6 +1109,9 @@ async function updateFiles(operation) {
1106
1109
  return operation;
1107
1110
  }
1108
1111
  async function updateFile(relPath, operation) {
1112
+ if (!existsSync(relPath)) {
1113
+ return false;
1114
+ }
1109
1115
  const name = path2.basename(relPath).trim().toLowerCase();
1110
1116
  switch (name) {
1111
1117
  case "package.json":
package/dist/cli/index.js CHANGED
@@ -636,7 +636,7 @@ var logSymbols = isUnicodeSupported() ? main : fallback;
636
636
  var log_symbols_default = logSymbols;
637
637
 
638
638
  // package.json
639
- var version = "9.5.0";
639
+ var version = "9.5.2";
640
640
 
641
641
  // src/version-bump.ts
642
642
  var import_node_process5 = __toESM(require("process"));
@@ -819,6 +819,8 @@ async function getCurrentVersion(operation) {
819
819
  filesToCheck.push("package.json");
820
820
  if (!filesToCheck.includes("deno.json"))
821
821
  filesToCheck.push("deno.json");
822
+ if (!filesToCheck.includes("deno.jsonc"))
823
+ filesToCheck.push("deno.jsonc");
822
824
  for (const file of filesToCheck) {
823
825
  const version2 = await readVersion(file, cwd);
824
826
  if (version2) {
@@ -1081,6 +1083,7 @@ function hasScript(manifest, script) {
1081
1083
 
1082
1084
  // src/update-files.ts
1083
1085
  var path2 = __toESM(require("path"));
1086
+ var import_node_fs3 = require("fs");
1084
1087
  async function updateFiles(operation) {
1085
1088
  const { files } = operation.options;
1086
1089
  for (const relPath of files) {
@@ -1100,6 +1103,9 @@ async function updateFiles(operation) {
1100
1103
  return operation;
1101
1104
  }
1102
1105
  async function updateFile(relPath, operation) {
1106
+ if (!(0, import_node_fs3.existsSync)(relPath)) {
1107
+ return false;
1108
+ }
1103
1109
  const name = path2.basename(relPath).trim().toLowerCase();
1104
1110
  switch (name) {
1105
1111
  case "package.json":
@@ -10,13 +10,13 @@ import {
10
10
  log_symbols_default,
11
11
  require_picocolors,
12
12
  versionBump
13
- } from "../chunk-BWAJDQ77.mjs";
13
+ } from "../chunk-XWLO3OHD.mjs";
14
14
 
15
15
  // src/cli/index.ts
16
16
  import process2 from "process";
17
17
 
18
18
  // package.json
19
- var version = "9.5.0";
19
+ var version = "9.5.2";
20
20
 
21
21
  // src/cli/parse-args.ts
22
22
  var import_picocolors = __toESM(require_picocolors());
package/dist/index.js CHANGED
@@ -824,6 +824,8 @@ async function getCurrentVersion(operation) {
824
824
  filesToCheck.push("package.json");
825
825
  if (!filesToCheck.includes("deno.json"))
826
826
  filesToCheck.push("deno.json");
827
+ if (!filesToCheck.includes("deno.jsonc"))
828
+ filesToCheck.push("deno.jsonc");
827
829
  for (const file of filesToCheck) {
828
830
  const version = await readVersion(file, cwd);
829
831
  if (version) {
@@ -1105,6 +1107,7 @@ function hasScript(manifest, script) {
1105
1107
 
1106
1108
  // src/update-files.ts
1107
1109
  var path2 = __toESM(require("path"));
1110
+ var import_node_fs3 = require("fs");
1108
1111
  async function updateFiles(operation) {
1109
1112
  const { files } = operation.options;
1110
1113
  for (const relPath of files) {
@@ -1124,6 +1127,9 @@ async function updateFiles(operation) {
1124
1127
  return operation;
1125
1128
  }
1126
1129
  async function updateFile(relPath, operation) {
1130
+ if (!(0, import_node_fs3.existsSync)(relPath)) {
1131
+ return false;
1132
+ }
1127
1133
  const name = path2.basename(relPath).trim().toLowerCase();
1128
1134
  switch (name) {
1129
1135
  case "package.json":
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  loadBumpConfig,
8
8
  versionBump,
9
9
  versionBumpInfo
10
- } from "./chunk-BWAJDQ77.mjs";
10
+ } from "./chunk-XWLO3OHD.mjs";
11
11
 
12
12
  // src/index.ts
13
13
  var src_default = versionBump;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bumpp",
3
- "version": "9.5.0",
4
- "packageManager": "pnpm@9.7.0",
3
+ "version": "9.5.2",
4
+ "packageManager": "pnpm@9.8.0",
5
5
  "description": "Bump version, commit changes, tag, and push to Git",
6
6
  "author": {
7
7
  "name": "James Messinger",
@@ -70,9 +70,9 @@
70
70
  "semver": "^7.6.3"
71
71
  },
72
72
  "devDependencies": {
73
- "@antfu/eslint-config": "^2.25.1",
73
+ "@antfu/eslint-config": "^2.27.0",
74
74
  "@types/js-yaml": "^4.0.9",
75
- "@types/node": "^22.2.0",
75
+ "@types/node": "^22.5.0",
76
76
  "@types/prompts": "^2.4.9",
77
77
  "@types/semver": "^7.5.8",
78
78
  "eslint": "^9.9.0",