bumpp 9.11.0 → 9.11.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/bin/bumpp.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict'
3
- const { main } = require('../dist/cli')
4
-
5
- main()
3
+ import('../dist/cli.js')
4
+ .then(r => r.main())
@@ -101,13 +101,15 @@ var require_picocolors = __commonJS({
101
101
  }
102
102
  });
103
103
 
104
- // src/cli/index.ts
104
+ // src/cli.ts
105
105
  var cli_exports = {};
106
106
  __export(cli_exports, {
107
107
  checkGitStatus: () => checkGitStatus,
108
108
  main: () => main
109
109
  });
110
110
  module.exports = __toCommonJS(cli_exports);
111
+
112
+ // src/cli/index.ts
111
113
  var import_node_process7 = __toESM(require("process"), 1);
112
114
 
113
115
  // node_modules/.pnpm/log-symbols@7.0.0/node_modules/log-symbols/symbols.js
@@ -972,7 +974,7 @@ var import_picocolors4 = __toESM(require_picocolors(), 1);
972
974
  var import_semver3 = require("semver");
973
975
 
974
976
  // package.json
975
- var version = "9.11.0";
977
+ var version = "9.11.1";
976
978
 
977
979
  // src/config.ts
978
980
  var import_node_path2 = require("path");
@@ -7,7 +7,7 @@ import {
7
7
  require_picocolors,
8
8
  symbols_exports,
9
9
  versionBump
10
- } from "../chunk-BEM77VRK.js";
10
+ } from "./chunk-K27IS2ON.js";
11
11
 
12
12
  // src/cli/index.ts
13
13
  import process2 from "node:process";
@@ -20,7 +20,7 @@ import cac from "cac";
20
20
  import { valid as isValidVersion } from "semver";
21
21
 
22
22
  // package.json
23
- var version = "9.11.0";
23
+ var version = "9.11.1";
24
24
 
25
25
  // src/cli/parse-args.ts
26
26
  async function parseArgs() {
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  loadBumpConfig,
8
8
  versionBump,
9
9
  versionBumpInfo
10
- } from "./chunk-BEM77VRK.js";
10
+ } from "./chunk-K27IS2ON.js";
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
3
  "type": "module",
4
- "version": "9.11.0",
4
+ "version": "9.11.1",
5
5
  "packageManager": "pnpm@9.15.4",
6
6
  "description": "Bump version, commit changes, tag, and push to Git",
7
7
  "author": {
@@ -29,12 +29,12 @@
29
29
  "exports": {
30
30
  ".": {
31
31
  "types": "./dist/index.d.ts",
32
- "import": "./dist/index.mjs",
33
- "require": "./dist/index.js"
32
+ "import": "./dist/index.js",
33
+ "require": "./dist/index.cjs"
34
34
  }
35
35
  },
36
36
  "main": "dist/index.js",
37
- "module": "dist/index.mjs",
37
+ "module": "dist/index.js",
38
38
  "types": "dist/index.d.ts",
39
39
  "bin": {
40
40
  "bumpp": "bin/bumpp.js"
@@ -50,7 +50,7 @@
50
50
  "clean": "rimraf .nyc_output coverage dist",
51
51
  "lint": "eslint .",
52
52
  "lint:fix": "eslint --fix .",
53
- "build": "tsup src/index.ts src/cli/index.ts --format esm,cjs --dts --clean",
53
+ "build": "tsup src/index.ts src/cli.ts --format esm,cjs --dts --clean",
54
54
  "watch": "npm run build -- --watch src",
55
55
  "start": "esno src/cli/run.ts",
56
56
  "test": "vitest",
@@ -101,6 +101,87 @@ var require_picocolors = __commonJS({
101
101
  }
102
102
  });
103
103
 
104
+ // src/types/version-bump-progress.ts
105
+ var ProgressEvent = /* @__PURE__ */ ((ProgressEvent2) => {
106
+ ProgressEvent2["FileUpdated"] = "file updated";
107
+ ProgressEvent2["FileSkipped"] = "file skipped";
108
+ ProgressEvent2["GitCommit"] = "git commit";
109
+ ProgressEvent2["GitTag"] = "git tag";
110
+ ProgressEvent2["GitPush"] = "git push";
111
+ ProgressEvent2["NpmScript"] = "npm script";
112
+ return ProgressEvent2;
113
+ })(ProgressEvent || {});
114
+ var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
115
+ NpmScript2["PreVersion"] = "preversion";
116
+ NpmScript2["Version"] = "version";
117
+ NpmScript2["PostVersion"] = "postversion";
118
+ return NpmScript2;
119
+ })(NpmScript || {});
120
+
121
+ // src/release-type.ts
122
+ var prereleaseTypes = ["premajor", "preminor", "prepatch", "prerelease"];
123
+ var releaseTypes = prereleaseTypes.concat(["major", "minor", "patch", "next", "conventional"]);
124
+ function isPrerelease(value) {
125
+ return prereleaseTypes.includes(value);
126
+ }
127
+ function isReleaseType(value) {
128
+ return releaseTypes.includes(value);
129
+ }
130
+
131
+ // src/version-bump.ts
132
+ import process5 from "node:process";
133
+
134
+ // node_modules/.pnpm/args-tokenizer@0.3.0/node_modules/args-tokenizer/dist/args-tokenizer.js
135
+ var spaceRegex = /\s/;
136
+ var tokenizeArgs = (argsString, options) => {
137
+ const tokens = [];
138
+ let currentToken = "";
139
+ let openningQuote;
140
+ let escaped = false;
141
+ for (let index = 0; index < argsString.length; index += 1) {
142
+ const char = argsString[index];
143
+ if (escaped) {
144
+ escaped = false;
145
+ if (openningQuote || char !== "\n") {
146
+ currentToken += char;
147
+ }
148
+ continue;
149
+ }
150
+ if (char === "\\") {
151
+ escaped = true;
152
+ continue;
153
+ }
154
+ if (openningQuote === void 0 && spaceRegex.test(char)) {
155
+ if (currentToken.length > 0) {
156
+ tokens.push(currentToken);
157
+ currentToken = "";
158
+ }
159
+ continue;
160
+ }
161
+ if (char === "'" || char === '"') {
162
+ if (openningQuote === void 0) {
163
+ openningQuote = char;
164
+ continue;
165
+ }
166
+ if (openningQuote === char) {
167
+ openningQuote = void 0;
168
+ continue;
169
+ }
170
+ }
171
+ currentToken += char;
172
+ }
173
+ if (currentToken.length > 0) {
174
+ tokens.push(currentToken);
175
+ }
176
+ if (options?.loose) {
177
+ return tokens;
178
+ }
179
+ if (openningQuote) {
180
+ throw Error("Unexpected end of string. Closing quote is missing.");
181
+ }
182
+ return tokens;
183
+ };
184
+
104
185
  // node_modules/.pnpm/log-symbols@7.0.0/node_modules/log-symbols/symbols.js
105
186
  var symbols_exports = {};
106
187
  __export(symbols_exports, {
@@ -196,87 +277,6 @@ var success = green(_isUnicodeSupported ? "\u2714" : "\u221A");
196
277
  var warning = yellow(_isUnicodeSupported ? "\u26A0" : "\u203C");
197
278
  var error = red(_isUnicodeSupported ? "\u2716\uFE0F" : "\xD7");
198
279
 
199
- // src/release-type.ts
200
- var prereleaseTypes = ["premajor", "preminor", "prepatch", "prerelease"];
201
- var releaseTypes = prereleaseTypes.concat(["major", "minor", "patch", "next", "conventional"]);
202
- function isPrerelease(value) {
203
- return prereleaseTypes.includes(value);
204
- }
205
- function isReleaseType(value) {
206
- return releaseTypes.includes(value);
207
- }
208
-
209
- // src/types/version-bump-progress.ts
210
- var ProgressEvent = /* @__PURE__ */ ((ProgressEvent2) => {
211
- ProgressEvent2["FileUpdated"] = "file updated";
212
- ProgressEvent2["FileSkipped"] = "file skipped";
213
- ProgressEvent2["GitCommit"] = "git commit";
214
- ProgressEvent2["GitTag"] = "git tag";
215
- ProgressEvent2["GitPush"] = "git push";
216
- ProgressEvent2["NpmScript"] = "npm script";
217
- return ProgressEvent2;
218
- })(ProgressEvent || {});
219
- var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
220
- NpmScript2["PreVersion"] = "preversion";
221
- NpmScript2["Version"] = "version";
222
- NpmScript2["PostVersion"] = "postversion";
223
- return NpmScript2;
224
- })(NpmScript || {});
225
-
226
- // src/version-bump.ts
227
- import process5 from "node:process";
228
-
229
- // node_modules/.pnpm/args-tokenizer@0.3.0/node_modules/args-tokenizer/dist/args-tokenizer.js
230
- var spaceRegex = /\s/;
231
- var tokenizeArgs = (argsString, options) => {
232
- const tokens = [];
233
- let currentToken = "";
234
- let openningQuote;
235
- let escaped = false;
236
- for (let index = 0; index < argsString.length; index += 1) {
237
- const char = argsString[index];
238
- if (escaped) {
239
- escaped = false;
240
- if (openningQuote || char !== "\n") {
241
- currentToken += char;
242
- }
243
- continue;
244
- }
245
- if (char === "\\") {
246
- escaped = true;
247
- continue;
248
- }
249
- if (openningQuote === void 0 && spaceRegex.test(char)) {
250
- if (currentToken.length > 0) {
251
- tokens.push(currentToken);
252
- currentToken = "";
253
- }
254
- continue;
255
- }
256
- if (char === "'" || char === '"') {
257
- if (openningQuote === void 0) {
258
- openningQuote = char;
259
- continue;
260
- }
261
- if (openningQuote === char) {
262
- openningQuote = void 0;
263
- continue;
264
- }
265
- }
266
- currentToken += char;
267
- }
268
- if (currentToken.length > 0) {
269
- tokens.push(currentToken);
270
- }
271
- if (options?.loose) {
272
- return tokens;
273
- }
274
- if (openningQuote) {
275
- throw Error("Unexpected end of string. Closing quote is missing.");
276
- }
277
- return tokens;
278
- };
279
-
280
280
  // src/version-bump.ts
281
281
  var import_picocolors3 = __toESM(require_picocolors(), 1);
282
282
  import prompts2 from "prompts";
@@ -1041,10 +1041,10 @@ function defineConfig(config) {
1041
1041
  export {
1042
1042
  __toESM,
1043
1043
  symbols_exports,
1044
- require_picocolors,
1045
- isReleaseType,
1046
1044
  ProgressEvent,
1047
1045
  NpmScript,
1046
+ require_picocolors,
1047
+ isReleaseType,
1048
1048
  versionBump,
1049
1049
  versionBumpInfo,
1050
1050
  bumpConfigDefaults,
File without changes
File without changes