bumpp 9.9.0 → 9.9.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.
@@ -130,6 +130,203 @@ var require_picocolors = __commonJS({
130
130
  }
131
131
  });
132
132
 
133
+ // node_modules/.pnpm/shell-quote@1.8.2/node_modules/shell-quote/parse.js
134
+ var require_parse = __commonJS({
135
+ "node_modules/.pnpm/shell-quote@1.8.2/node_modules/shell-quote/parse.js"(exports, module) {
136
+ "use strict";
137
+ var CONTROL = "(?:" + [
138
+ "\\|\\|",
139
+ "\\&\\&",
140
+ ";;",
141
+ "\\|\\&",
142
+ "\\<\\(",
143
+ "\\<\\<\\<",
144
+ ">>",
145
+ ">\\&",
146
+ "<\\&",
147
+ "[&;()|<>]"
148
+ ].join("|") + ")";
149
+ var controlRE = new RegExp("^" + CONTROL + "$");
150
+ var META = "|&;()<> \\t";
151
+ var SINGLE_QUOTE = '"((\\\\"|[^"])*?)"';
152
+ var DOUBLE_QUOTE = "'((\\\\'|[^'])*?)'";
153
+ var hash = /^#$/;
154
+ var SQ = "'";
155
+ var DQ = '"';
156
+ var DS = "$";
157
+ var TOKEN = "";
158
+ var mult = 4294967296;
159
+ for (i = 0; i < 4; i++) {
160
+ TOKEN += (mult * Math.random()).toString(16);
161
+ }
162
+ var i;
163
+ var startsWithToken = new RegExp("^" + TOKEN);
164
+ function matchAll(s, r) {
165
+ var origIndex = r.lastIndex;
166
+ var matches = [];
167
+ var matchObj;
168
+ while (matchObj = r.exec(s)) {
169
+ matches.push(matchObj);
170
+ if (r.lastIndex === matchObj.index) {
171
+ r.lastIndex += 1;
172
+ }
173
+ }
174
+ r.lastIndex = origIndex;
175
+ return matches;
176
+ }
177
+ function getVar(env, pre, key) {
178
+ var r = typeof env === "function" ? env(key) : env[key];
179
+ if (typeof r === "undefined" && key != "") {
180
+ r = "";
181
+ } else if (typeof r === "undefined") {
182
+ r = "$";
183
+ }
184
+ if (typeof r === "object") {
185
+ return pre + TOKEN + JSON.stringify(r) + TOKEN;
186
+ }
187
+ return pre + r;
188
+ }
189
+ function parseInternal(string, env, opts) {
190
+ if (!opts) {
191
+ opts = {};
192
+ }
193
+ var BS = opts.escape || "\\";
194
+ var BAREWORD = "(\\" + BS + `['"` + META + `]|[^\\s'"` + META + "])+";
195
+ var chunker = new RegExp([
196
+ "(" + CONTROL + ")",
197
+ // control chars
198
+ "(" + BAREWORD + "|" + SINGLE_QUOTE + "|" + DOUBLE_QUOTE + ")+"
199
+ ].join("|"), "g");
200
+ var matches = matchAll(string, chunker);
201
+ if (matches.length === 0) {
202
+ return [];
203
+ }
204
+ if (!env) {
205
+ env = {};
206
+ }
207
+ var commented = false;
208
+ return matches.map(function(match) {
209
+ var s = match[0];
210
+ if (!s || commented) {
211
+ return void 0;
212
+ }
213
+ if (controlRE.test(s)) {
214
+ return { op: s };
215
+ }
216
+ var quote = false;
217
+ var esc = false;
218
+ var out = "";
219
+ var isGlob = false;
220
+ var i2;
221
+ function parseEnvVar() {
222
+ i2 += 1;
223
+ var varend;
224
+ var varname;
225
+ var char = s.charAt(i2);
226
+ if (char === "{") {
227
+ i2 += 1;
228
+ if (s.charAt(i2) === "}") {
229
+ throw new Error("Bad substitution: " + s.slice(i2 - 2, i2 + 1));
230
+ }
231
+ varend = s.indexOf("}", i2);
232
+ if (varend < 0) {
233
+ throw new Error("Bad substitution: " + s.slice(i2));
234
+ }
235
+ varname = s.slice(i2, varend);
236
+ i2 = varend;
237
+ } else if (/[*@#?$!_-]/.test(char)) {
238
+ varname = char;
239
+ i2 += 1;
240
+ } else {
241
+ var slicedFromI = s.slice(i2);
242
+ varend = slicedFromI.match(/[^\w\d_]/);
243
+ if (!varend) {
244
+ varname = slicedFromI;
245
+ i2 = s.length;
246
+ } else {
247
+ varname = slicedFromI.slice(0, varend.index);
248
+ i2 += varend.index - 1;
249
+ }
250
+ }
251
+ return getVar(env, "", varname);
252
+ }
253
+ for (i2 = 0; i2 < s.length; i2++) {
254
+ var c4 = s.charAt(i2);
255
+ isGlob = isGlob || !quote && (c4 === "*" || c4 === "?");
256
+ if (esc) {
257
+ out += c4;
258
+ esc = false;
259
+ } else if (quote) {
260
+ if (c4 === quote) {
261
+ quote = false;
262
+ } else if (quote == SQ) {
263
+ out += c4;
264
+ } else {
265
+ if (c4 === BS) {
266
+ i2 += 1;
267
+ c4 = s.charAt(i2);
268
+ if (c4 === DQ || c4 === BS || c4 === DS) {
269
+ out += c4;
270
+ } else {
271
+ out += BS + c4;
272
+ }
273
+ } else if (c4 === DS) {
274
+ out += parseEnvVar();
275
+ } else {
276
+ out += c4;
277
+ }
278
+ }
279
+ } else if (c4 === DQ || c4 === SQ) {
280
+ quote = c4;
281
+ } else if (controlRE.test(c4)) {
282
+ return { op: s };
283
+ } else if (hash.test(c4)) {
284
+ commented = true;
285
+ var commentObj = { comment: string.slice(match.index + i2 + 1) };
286
+ if (out.length) {
287
+ return [out, commentObj];
288
+ }
289
+ return [commentObj];
290
+ } else if (c4 === BS) {
291
+ esc = true;
292
+ } else if (c4 === DS) {
293
+ out += parseEnvVar();
294
+ } else {
295
+ out += c4;
296
+ }
297
+ }
298
+ if (isGlob) {
299
+ return { op: "glob", pattern: out };
300
+ }
301
+ return out;
302
+ }).reduce(function(prev, arg) {
303
+ return typeof arg === "undefined" ? prev : prev.concat(arg);
304
+ }, []);
305
+ }
306
+ module.exports = function parse2(s, env, opts) {
307
+ var mapped = parseInternal(s, env, opts);
308
+ if (typeof env !== "function") {
309
+ return mapped;
310
+ }
311
+ return mapped.reduce(function(acc, s2) {
312
+ if (typeof s2 === "object") {
313
+ return acc.concat(s2);
314
+ }
315
+ var xs = s2.split(RegExp("(" + TOKEN + ".*?" + TOKEN + ")", "g"));
316
+ if (xs.length === 1) {
317
+ return acc.concat(xs[0]);
318
+ }
319
+ return acc.concat(xs.filter(Boolean).map(function(x5) {
320
+ if (startsWithToken.test(x5)) {
321
+ return JSON.parse(x5.split(TOKEN)[1]);
322
+ }
323
+ return x5;
324
+ }));
325
+ }, []);
326
+ };
327
+ }
328
+ });
329
+
133
330
  // node_modules/.pnpm/log-symbols@7.0.0/node_modules/log-symbols/symbols.js
134
331
  var symbols_exports = {};
135
332
  __export(symbols_exports, {
@@ -256,6 +453,7 @@ var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
256
453
  // src/version-bump.ts
257
454
  import process5 from "node:process";
258
455
  var import_picocolors3 = __toESM(require_picocolors());
456
+ var import_parse = __toESM(require_parse());
259
457
  import prompts2 from "prompts";
260
458
  import { x as x4 } from "tinyexec";
261
459
 
@@ -919,10 +1117,12 @@ async function versionBump(arg = {}) {
919
1117
  if (typeof operation.options.execute === "function") {
920
1118
  await operation.options.execute(operation);
921
1119
  } else {
922
- console.log(symbols_exports.info, "Executing script", operation.options.execute);
923
- await x4(operation.options.execute, [], {
1120
+ const [command, ...args] = (0, import_parse.default)(operation.options.execute);
1121
+ console.log(symbols_exports.info, "Executing script", command, ...args);
1122
+ await x4(command, args, {
924
1123
  nodeOptions: {
925
- stdio: "inherit"
1124
+ stdio: "inherit",
1125
+ cwd: operation.options.cwd
926
1126
  }
927
1127
  });
928
1128
  console.log(symbols_exports.success, "Script finished");
package/dist/cli/index.js CHANGED
@@ -130,6 +130,203 @@ var require_picocolors = __commonJS({
130
130
  }
131
131
  });
132
132
 
133
+ // node_modules/.pnpm/shell-quote@1.8.2/node_modules/shell-quote/parse.js
134
+ var require_parse = __commonJS({
135
+ "node_modules/.pnpm/shell-quote@1.8.2/node_modules/shell-quote/parse.js"(exports2, module2) {
136
+ "use strict";
137
+ var CONTROL = "(?:" + [
138
+ "\\|\\|",
139
+ "\\&\\&",
140
+ ";;",
141
+ "\\|\\&",
142
+ "\\<\\(",
143
+ "\\<\\<\\<",
144
+ ">>",
145
+ ">\\&",
146
+ "<\\&",
147
+ "[&;()|<>]"
148
+ ].join("|") + ")";
149
+ var controlRE = new RegExp("^" + CONTROL + "$");
150
+ var META = "|&;()<> \\t";
151
+ var SINGLE_QUOTE = '"((\\\\"|[^"])*?)"';
152
+ var DOUBLE_QUOTE = "'((\\\\'|[^'])*?)'";
153
+ var hash = /^#$/;
154
+ var SQ = "'";
155
+ var DQ = '"';
156
+ var DS = "$";
157
+ var TOKEN = "";
158
+ var mult = 4294967296;
159
+ for (i = 0; i < 4; i++) {
160
+ TOKEN += (mult * Math.random()).toString(16);
161
+ }
162
+ var i;
163
+ var startsWithToken = new RegExp("^" + TOKEN);
164
+ function matchAll(s, r) {
165
+ var origIndex = r.lastIndex;
166
+ var matches = [];
167
+ var matchObj;
168
+ while (matchObj = r.exec(s)) {
169
+ matches.push(matchObj);
170
+ if (r.lastIndex === matchObj.index) {
171
+ r.lastIndex += 1;
172
+ }
173
+ }
174
+ r.lastIndex = origIndex;
175
+ return matches;
176
+ }
177
+ function getVar(env, pre, key) {
178
+ var r = typeof env === "function" ? env(key) : env[key];
179
+ if (typeof r === "undefined" && key != "") {
180
+ r = "";
181
+ } else if (typeof r === "undefined") {
182
+ r = "$";
183
+ }
184
+ if (typeof r === "object") {
185
+ return pre + TOKEN + JSON.stringify(r) + TOKEN;
186
+ }
187
+ return pre + r;
188
+ }
189
+ function parseInternal(string, env, opts) {
190
+ if (!opts) {
191
+ opts = {};
192
+ }
193
+ var BS = opts.escape || "\\";
194
+ var BAREWORD = "(\\" + BS + `['"` + META + `]|[^\\s'"` + META + "])+";
195
+ var chunker = new RegExp([
196
+ "(" + CONTROL + ")",
197
+ // control chars
198
+ "(" + BAREWORD + "|" + SINGLE_QUOTE + "|" + DOUBLE_QUOTE + ")+"
199
+ ].join("|"), "g");
200
+ var matches = matchAll(string, chunker);
201
+ if (matches.length === 0) {
202
+ return [];
203
+ }
204
+ if (!env) {
205
+ env = {};
206
+ }
207
+ var commented = false;
208
+ return matches.map(function(match) {
209
+ var s = match[0];
210
+ if (!s || commented) {
211
+ return void 0;
212
+ }
213
+ if (controlRE.test(s)) {
214
+ return { op: s };
215
+ }
216
+ var quote = false;
217
+ var esc = false;
218
+ var out = "";
219
+ var isGlob = false;
220
+ var i2;
221
+ function parseEnvVar() {
222
+ i2 += 1;
223
+ var varend;
224
+ var varname;
225
+ var char = s.charAt(i2);
226
+ if (char === "{") {
227
+ i2 += 1;
228
+ if (s.charAt(i2) === "}") {
229
+ throw new Error("Bad substitution: " + s.slice(i2 - 2, i2 + 1));
230
+ }
231
+ varend = s.indexOf("}", i2);
232
+ if (varend < 0) {
233
+ throw new Error("Bad substitution: " + s.slice(i2));
234
+ }
235
+ varname = s.slice(i2, varend);
236
+ i2 = varend;
237
+ } else if (/[*@#?$!_-]/.test(char)) {
238
+ varname = char;
239
+ i2 += 1;
240
+ } else {
241
+ var slicedFromI = s.slice(i2);
242
+ varend = slicedFromI.match(/[^\w\d_]/);
243
+ if (!varend) {
244
+ varname = slicedFromI;
245
+ i2 = s.length;
246
+ } else {
247
+ varname = slicedFromI.slice(0, varend.index);
248
+ i2 += varend.index - 1;
249
+ }
250
+ }
251
+ return getVar(env, "", varname);
252
+ }
253
+ for (i2 = 0; i2 < s.length; i2++) {
254
+ var c5 = s.charAt(i2);
255
+ isGlob = isGlob || !quote && (c5 === "*" || c5 === "?");
256
+ if (esc) {
257
+ out += c5;
258
+ esc = false;
259
+ } else if (quote) {
260
+ if (c5 === quote) {
261
+ quote = false;
262
+ } else if (quote == SQ) {
263
+ out += c5;
264
+ } else {
265
+ if (c5 === BS) {
266
+ i2 += 1;
267
+ c5 = s.charAt(i2);
268
+ if (c5 === DQ || c5 === BS || c5 === DS) {
269
+ out += c5;
270
+ } else {
271
+ out += BS + c5;
272
+ }
273
+ } else if (c5 === DS) {
274
+ out += parseEnvVar();
275
+ } else {
276
+ out += c5;
277
+ }
278
+ }
279
+ } else if (c5 === DQ || c5 === SQ) {
280
+ quote = c5;
281
+ } else if (controlRE.test(c5)) {
282
+ return { op: s };
283
+ } else if (hash.test(c5)) {
284
+ commented = true;
285
+ var commentObj = { comment: string.slice(match.index + i2 + 1) };
286
+ if (out.length) {
287
+ return [out, commentObj];
288
+ }
289
+ return [commentObj];
290
+ } else if (c5 === BS) {
291
+ esc = true;
292
+ } else if (c5 === DS) {
293
+ out += parseEnvVar();
294
+ } else {
295
+ out += c5;
296
+ }
297
+ }
298
+ if (isGlob) {
299
+ return { op: "glob", pattern: out };
300
+ }
301
+ return out;
302
+ }).reduce(function(prev, arg) {
303
+ return typeof arg === "undefined" ? prev : prev.concat(arg);
304
+ }, []);
305
+ }
306
+ module2.exports = function parse2(s, env, opts) {
307
+ var mapped = parseInternal(s, env, opts);
308
+ if (typeof env !== "function") {
309
+ return mapped;
310
+ }
311
+ return mapped.reduce(function(acc, s2) {
312
+ if (typeof s2 === "object") {
313
+ return acc.concat(s2);
314
+ }
315
+ var xs = s2.split(RegExp("(" + TOKEN + ".*?" + TOKEN + ")", "g"));
316
+ if (xs.length === 1) {
317
+ return acc.concat(xs[0]);
318
+ }
319
+ return acc.concat(xs.filter(Boolean).map(function(x6) {
320
+ if (startsWithToken.test(x6)) {
321
+ return JSON.parse(x6.split(TOKEN)[1]);
322
+ }
323
+ return x6;
324
+ }));
325
+ }, []);
326
+ };
327
+ }
328
+ });
329
+
133
330
  // src/cli/index.ts
134
331
  var cli_exports = {};
135
332
  __export(cli_exports, {
@@ -242,6 +439,7 @@ var import_tinyexec5 = require("tinyexec");
242
439
  var import_node_process4 = __toESM(require("process"));
243
440
  var import_picocolors3 = __toESM(require_picocolors());
244
441
  var import_prompts2 = __toESM(require("prompts"));
442
+ var import_parse = __toESM(require_parse());
245
443
  var import_tinyexec4 = require("tinyexec");
246
444
 
247
445
  // src/get-current-version.ts
@@ -914,10 +1112,12 @@ async function versionBump(arg = {}) {
914
1112
  if (typeof operation.options.execute === "function") {
915
1113
  await operation.options.execute(operation);
916
1114
  } else {
917
- console.log(symbols_exports.info, "Executing script", operation.options.execute);
918
- await (0, import_tinyexec4.x)(operation.options.execute, [], {
1115
+ const [command, ...args] = (0, import_parse.default)(operation.options.execute);
1116
+ console.log(symbols_exports.info, "Executing script", command, ...args);
1117
+ await (0, import_tinyexec4.x)(command, args, {
919
1118
  nodeOptions: {
920
- stdio: "inherit"
1119
+ stdio: "inherit",
1120
+ cwd: operation.options.cwd
921
1121
  }
922
1122
  });
923
1123
  console.log(symbols_exports.success, "Script finished");
@@ -954,7 +1154,7 @@ var import_picocolors4 = __toESM(require_picocolors());
954
1154
  var import_semver3 = require("semver");
955
1155
 
956
1156
  // package.json
957
- var version = "9.9.0";
1157
+ var version = "9.9.1";
958
1158
 
959
1159
  // src/config.ts
960
1160
  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-SDGX7IFY.mjs";
13
+ } from "../chunk-PU4CGCPI.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.9.0";
26
+ var version = "9.9.1";
27
27
 
28
28
  // src/cli/parse-args.ts
29
29
  async function parseArgs() {
package/dist/index.js CHANGED
@@ -130,6 +130,203 @@ var require_picocolors = __commonJS({
130
130
  }
131
131
  });
132
132
 
133
+ // node_modules/.pnpm/shell-quote@1.8.2/node_modules/shell-quote/parse.js
134
+ var require_parse = __commonJS({
135
+ "node_modules/.pnpm/shell-quote@1.8.2/node_modules/shell-quote/parse.js"(exports2, module2) {
136
+ "use strict";
137
+ var CONTROL = "(?:" + [
138
+ "\\|\\|",
139
+ "\\&\\&",
140
+ ";;",
141
+ "\\|\\&",
142
+ "\\<\\(",
143
+ "\\<\\<\\<",
144
+ ">>",
145
+ ">\\&",
146
+ "<\\&",
147
+ "[&;()|<>]"
148
+ ].join("|") + ")";
149
+ var controlRE = new RegExp("^" + CONTROL + "$");
150
+ var META = "|&;()<> \\t";
151
+ var SINGLE_QUOTE = '"((\\\\"|[^"])*?)"';
152
+ var DOUBLE_QUOTE = "'((\\\\'|[^'])*?)'";
153
+ var hash = /^#$/;
154
+ var SQ = "'";
155
+ var DQ = '"';
156
+ var DS = "$";
157
+ var TOKEN = "";
158
+ var mult = 4294967296;
159
+ for (i = 0; i < 4; i++) {
160
+ TOKEN += (mult * Math.random()).toString(16);
161
+ }
162
+ var i;
163
+ var startsWithToken = new RegExp("^" + TOKEN);
164
+ function matchAll(s, r) {
165
+ var origIndex = r.lastIndex;
166
+ var matches = [];
167
+ var matchObj;
168
+ while (matchObj = r.exec(s)) {
169
+ matches.push(matchObj);
170
+ if (r.lastIndex === matchObj.index) {
171
+ r.lastIndex += 1;
172
+ }
173
+ }
174
+ r.lastIndex = origIndex;
175
+ return matches;
176
+ }
177
+ function getVar(env, pre, key) {
178
+ var r = typeof env === "function" ? env(key) : env[key];
179
+ if (typeof r === "undefined" && key != "") {
180
+ r = "";
181
+ } else if (typeof r === "undefined") {
182
+ r = "$";
183
+ }
184
+ if (typeof r === "object") {
185
+ return pre + TOKEN + JSON.stringify(r) + TOKEN;
186
+ }
187
+ return pre + r;
188
+ }
189
+ function parseInternal(string, env, opts) {
190
+ if (!opts) {
191
+ opts = {};
192
+ }
193
+ var BS = opts.escape || "\\";
194
+ var BAREWORD = "(\\" + BS + `['"` + META + `]|[^\\s'"` + META + "])+";
195
+ var chunker = new RegExp([
196
+ "(" + CONTROL + ")",
197
+ // control chars
198
+ "(" + BAREWORD + "|" + SINGLE_QUOTE + "|" + DOUBLE_QUOTE + ")+"
199
+ ].join("|"), "g");
200
+ var matches = matchAll(string, chunker);
201
+ if (matches.length === 0) {
202
+ return [];
203
+ }
204
+ if (!env) {
205
+ env = {};
206
+ }
207
+ var commented = false;
208
+ return matches.map(function(match) {
209
+ var s = match[0];
210
+ if (!s || commented) {
211
+ return void 0;
212
+ }
213
+ if (controlRE.test(s)) {
214
+ return { op: s };
215
+ }
216
+ var quote = false;
217
+ var esc = false;
218
+ var out = "";
219
+ var isGlob = false;
220
+ var i2;
221
+ function parseEnvVar() {
222
+ i2 += 1;
223
+ var varend;
224
+ var varname;
225
+ var char = s.charAt(i2);
226
+ if (char === "{") {
227
+ i2 += 1;
228
+ if (s.charAt(i2) === "}") {
229
+ throw new Error("Bad substitution: " + s.slice(i2 - 2, i2 + 1));
230
+ }
231
+ varend = s.indexOf("}", i2);
232
+ if (varend < 0) {
233
+ throw new Error("Bad substitution: " + s.slice(i2));
234
+ }
235
+ varname = s.slice(i2, varend);
236
+ i2 = varend;
237
+ } else if (/[*@#?$!_-]/.test(char)) {
238
+ varname = char;
239
+ i2 += 1;
240
+ } else {
241
+ var slicedFromI = s.slice(i2);
242
+ varend = slicedFromI.match(/[^\w\d_]/);
243
+ if (!varend) {
244
+ varname = slicedFromI;
245
+ i2 = s.length;
246
+ } else {
247
+ varname = slicedFromI.slice(0, varend.index);
248
+ i2 += varend.index - 1;
249
+ }
250
+ }
251
+ return getVar(env, "", varname);
252
+ }
253
+ for (i2 = 0; i2 < s.length; i2++) {
254
+ var c4 = s.charAt(i2);
255
+ isGlob = isGlob || !quote && (c4 === "*" || c4 === "?");
256
+ if (esc) {
257
+ out += c4;
258
+ esc = false;
259
+ } else if (quote) {
260
+ if (c4 === quote) {
261
+ quote = false;
262
+ } else if (quote == SQ) {
263
+ out += c4;
264
+ } else {
265
+ if (c4 === BS) {
266
+ i2 += 1;
267
+ c4 = s.charAt(i2);
268
+ if (c4 === DQ || c4 === BS || c4 === DS) {
269
+ out += c4;
270
+ } else {
271
+ out += BS + c4;
272
+ }
273
+ } else if (c4 === DS) {
274
+ out += parseEnvVar();
275
+ } else {
276
+ out += c4;
277
+ }
278
+ }
279
+ } else if (c4 === DQ || c4 === SQ) {
280
+ quote = c4;
281
+ } else if (controlRE.test(c4)) {
282
+ return { op: s };
283
+ } else if (hash.test(c4)) {
284
+ commented = true;
285
+ var commentObj = { comment: string.slice(match.index + i2 + 1) };
286
+ if (out.length) {
287
+ return [out, commentObj];
288
+ }
289
+ return [commentObj];
290
+ } else if (c4 === BS) {
291
+ esc = true;
292
+ } else if (c4 === DS) {
293
+ out += parseEnvVar();
294
+ } else {
295
+ out += c4;
296
+ }
297
+ }
298
+ if (isGlob) {
299
+ return { op: "glob", pattern: out };
300
+ }
301
+ return out;
302
+ }).reduce(function(prev, arg) {
303
+ return typeof arg === "undefined" ? prev : prev.concat(arg);
304
+ }, []);
305
+ }
306
+ module2.exports = function parse2(s, env, opts) {
307
+ var mapped = parseInternal(s, env, opts);
308
+ if (typeof env !== "function") {
309
+ return mapped;
310
+ }
311
+ return mapped.reduce(function(acc, s2) {
312
+ if (typeof s2 === "object") {
313
+ return acc.concat(s2);
314
+ }
315
+ var xs = s2.split(RegExp("(" + TOKEN + ".*?" + TOKEN + ")", "g"));
316
+ if (xs.length === 1) {
317
+ return acc.concat(xs[0]);
318
+ }
319
+ return acc.concat(xs.filter(Boolean).map(function(x5) {
320
+ if (startsWithToken.test(x5)) {
321
+ return JSON.parse(x5.split(TOKEN)[1]);
322
+ }
323
+ return x5;
324
+ }));
325
+ }, []);
326
+ };
327
+ }
328
+ });
329
+
133
330
  // src/index.ts
134
331
  var src_exports = {};
135
332
  __export(src_exports, {
@@ -246,6 +443,7 @@ var error = red(_isUnicodeSupported ? "\u2716\uFE0F" : "\xD7");
246
443
  // src/version-bump.ts
247
444
  var import_picocolors3 = __toESM(require_picocolors());
248
445
  var import_prompts2 = __toESM(require("prompts"));
446
+ var import_parse = __toESM(require_parse());
249
447
  var import_tinyexec4 = require("tinyexec");
250
448
 
251
449
  // src/get-current-version.ts
@@ -937,10 +1135,12 @@ async function versionBump(arg = {}) {
937
1135
  if (typeof operation.options.execute === "function") {
938
1136
  await operation.options.execute(operation);
939
1137
  } else {
940
- console.log(symbols_exports.info, "Executing script", operation.options.execute);
941
- await (0, import_tinyexec4.x)(operation.options.execute, [], {
1138
+ const [command, ...args] = (0, import_parse.default)(operation.options.execute);
1139
+ console.log(symbols_exports.info, "Executing script", command, ...args);
1140
+ await (0, import_tinyexec4.x)(command, args, {
942
1141
  nodeOptions: {
943
- stdio: "inherit"
1142
+ stdio: "inherit",
1143
+ cwd: operation.options.cwd
944
1144
  }
945
1145
  });
946
1146
  console.log(symbols_exports.success, "Script finished");
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  loadBumpConfig,
8
8
  versionBump,
9
9
  versionBumpInfo
10
- } from "./chunk-SDGX7IFY.mjs";
10
+ } from "./chunk-PU4CGCPI.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.9.0",
3
+ "version": "9.9.1",
4
4
  "packageManager": "pnpm@9.15.0",
5
5
  "description": "Bump version, commit changes, tag, and push to Git",
6
6
  "author": {
@@ -82,6 +82,7 @@
82
82
  "npm-check": "^6.0.1",
83
83
  "picocolors": "^1.1.1",
84
84
  "rimraf": "^6.0.1",
85
+ "shell-quote": "^1.8.2",
85
86
  "tsup": "^8.3.5",
86
87
  "typescript": "^5.7.2",
87
88
  "vitest": "^2.1.8"