bumpp 9.10.1 → 9.10.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.
@@ -328,7 +328,7 @@ async function readJsoncFile(name, cwd) {
328
328
  async function writeJsoncFile(file) {
329
329
  let newJSON = file.text;
330
330
  for (const [key, value] of file.modified) {
331
- const edit = jsonc.modify(file.text, key, value, {});
331
+ const edit = jsonc.modify(newJSON, key, value, {});
332
332
  newJSON = jsonc.applyEdits(newJSON, edit);
333
333
  }
334
334
  return writeTextFile(__spreadProps(__spreadValues({}, file), { data: newJSON }));
@@ -907,7 +907,7 @@ async function updateFiles(operation) {
907
907
  return operation;
908
908
  }
909
909
  async function updateFile(relPath, operation) {
910
- if (!existsSync(relPath)) {
910
+ if (!existsSync(path2.join(operation.options.cwd, relPath))) {
911
911
  return false;
912
912
  }
913
913
  const name = path2.basename(relPath).trim().toLowerCase();
package/dist/cli/index.js CHANGED
@@ -313,7 +313,7 @@ async function readJsoncFile(name, cwd) {
313
313
  async function writeJsoncFile(file) {
314
314
  let newJSON = file.text;
315
315
  for (const [key, value] of file.modified) {
316
- const edit = jsonc.modify(file.text, key, value, {});
316
+ const edit = jsonc.modify(newJSON, key, value, {});
317
317
  newJSON = jsonc.applyEdits(newJSON, edit);
318
318
  }
319
319
  return writeTextFile(__spreadProps(__spreadValues({}, file), { data: newJSON }));
@@ -902,7 +902,7 @@ async function updateFiles(operation) {
902
902
  return operation;
903
903
  }
904
904
  async function updateFile(relPath, operation) {
905
- if (!(0, import_node_fs3.existsSync)(relPath)) {
905
+ if (!(0, import_node_fs3.existsSync)(path2.join(operation.options.cwd, relPath))) {
906
906
  return false;
907
907
  }
908
908
  const name = path2.basename(relPath).trim().toLowerCase();
@@ -1045,7 +1045,7 @@ var import_picocolors4 = __toESM(require_picocolors());
1045
1045
  var import_semver3 = require("semver");
1046
1046
 
1047
1047
  // package.json
1048
- var version = "9.10.1";
1048
+ var version = "9.10.2";
1049
1049
 
1050
1050
  // src/config.ts
1051
1051
  var import_node_path2 = require("path");
@@ -10,7 +10,7 @@ import {
10
10
  require_picocolors,
11
11
  symbols_exports,
12
12
  versionBump
13
- } from "../chunk-HXP7VO25.mjs";
13
+ } from "../chunk-W5LZZJWM.mjs";
14
14
 
15
15
  // src/cli/index.ts
16
16
  import process2 from "node:process";
@@ -23,7 +23,7 @@ import cac from "cac";
23
23
  import { valid as isValidVersion } from "semver";
24
24
 
25
25
  // package.json
26
- var version = "9.10.1";
26
+ var version = "9.10.2";
27
27
 
28
28
  // src/cli/parse-args.ts
29
29
  async function parseArgs() {
package/dist/index.js CHANGED
@@ -315,7 +315,7 @@ async function readJsoncFile(name, cwd) {
315
315
  async function writeJsoncFile(file) {
316
316
  let newJSON = file.text;
317
317
  for (const [key, value] of file.modified) {
318
- const edit = jsonc.modify(file.text, key, value, {});
318
+ const edit = jsonc.modify(newJSON, key, value, {});
319
319
  newJSON = jsonc.applyEdits(newJSON, edit);
320
320
  }
321
321
  return writeTextFile(__spreadProps(__spreadValues({}, file), { data: newJSON }));
@@ -923,7 +923,7 @@ async function updateFiles(operation) {
923
923
  return operation;
924
924
  }
925
925
  async function updateFile(relPath, operation) {
926
- if (!(0, import_node_fs3.existsSync)(relPath)) {
926
+ if (!(0, import_node_fs3.existsSync)(path2.join(operation.options.cwd, relPath))) {
927
927
  return false;
928
928
  }
929
929
  const name = path2.basename(relPath).trim().toLowerCase();
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  loadBumpConfig,
8
8
  versionBump,
9
9
  versionBumpInfo
10
- } from "./chunk-HXP7VO25.mjs";
10
+ } from "./chunk-W5LZZJWM.mjs";
11
11
 
12
12
  // src/index.ts
13
13
  var src_default = versionBump;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bumpp",
3
- "version": "9.10.1",
3
+ "version": "9.10.2",
4
4
  "packageManager": "pnpm@9.15.4",
5
5
  "description": "Bump version, commit changes, tag, and push to Git",
6
6
  "author": {
@@ -72,9 +72,9 @@
72
72
  "tinyglobby": "^0.2.10"
73
73
  },
74
74
  "devDependencies": {
75
- "@antfu/eslint-config": "^3.14.0",
75
+ "@antfu/eslint-config": "^3.16.0",
76
76
  "@types/js-yaml": "^4.0.9",
77
- "@types/node": "^22.10.6",
77
+ "@types/node": "^22.10.7",
78
78
  "@types/prompts": "^2.4.9",
79
79
  "@types/semver": "^7.5.8",
80
80
  "args-tokenizer": "^0.3.0",
@@ -86,6 +86,6 @@
86
86
  "rimraf": "^6.0.1",
87
87
  "tsup": "^8.3.5",
88
88
  "typescript": "^5.7.3",
89
- "vitest": "^2.1.8"
89
+ "vitest": "^3.0.3"
90
90
  }
91
91
  }