bumpp 10.1.1 → 10.2.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/cli.mjs +2 -2
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +2 -2
- package/dist/shared/{bumpp.CUOJsIOV.mjs → bumpp.QyItIQce.mjs} +14 -8
- package/package.json +10 -10
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
2
|
import { x, NonZeroExitError } from 'tinyexec';
|
|
3
|
-
import { l as loadBumpConfig, i as isReleaseType, b as bumpConfigDefaults, v as versionBump, P as ProgressEvent, s as symbols } from './shared/bumpp.
|
|
3
|
+
import { l as loadBumpConfig, i as isReleaseType, b as bumpConfigDefaults, v as versionBump, P as ProgressEvent, s as symbols } from './shared/bumpp.QyItIQce.mjs';
|
|
4
4
|
import c from 'ansis';
|
|
5
5
|
import cac from 'cac';
|
|
6
6
|
import { valid } from 'semver';
|
|
@@ -24,7 +24,7 @@ var ExitCode = /* @__PURE__ */ ((ExitCode2) => {
|
|
|
24
24
|
return ExitCode2;
|
|
25
25
|
})(ExitCode || {});
|
|
26
26
|
|
|
27
|
-
const version = "10.
|
|
27
|
+
const version = "10.2.1";
|
|
28
28
|
|
|
29
29
|
async function parseArgs() {
|
|
30
30
|
try {
|
package/dist/index.d.mts
CHANGED
|
@@ -376,4 +376,5 @@ declare const bumpConfigDefaults: VersionBumpOptions;
|
|
|
376
376
|
declare function loadBumpConfig(overrides?: Partial<VersionBumpOptions>, cwd?: string): Promise<VersionBumpOptions>;
|
|
377
377
|
declare function defineConfig(config: Partial<VersionBumpOptions>): Partial<VersionBumpOptions>;
|
|
378
378
|
|
|
379
|
-
export {
|
|
379
|
+
export { NpmScript, ProgressEvent, bumpConfigDefaults, versionBump as default, defineConfig, loadBumpConfig, versionBump, versionBumpInfo };
|
|
380
|
+
export type { InterfaceOptions, ReleaseType, VersionBumpOptions, VersionBumpProgress, VersionBumpResults };
|
package/dist/index.d.ts
CHANGED
|
@@ -376,4 +376,5 @@ declare const bumpConfigDefaults: VersionBumpOptions;
|
|
|
376
376
|
declare function loadBumpConfig(overrides?: Partial<VersionBumpOptions>, cwd?: string): Promise<VersionBumpOptions>;
|
|
377
377
|
declare function defineConfig(config: Partial<VersionBumpOptions>): Partial<VersionBumpOptions>;
|
|
378
378
|
|
|
379
|
-
export {
|
|
379
|
+
export { NpmScript, ProgressEvent, bumpConfigDefaults, versionBump as default, defineConfig, loadBumpConfig, versionBump, versionBumpInfo };
|
|
380
|
+
export type { InterfaceOptions, ReleaseType, VersionBumpOptions, VersionBumpProgress, VersionBumpResults };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { v as versionBump } from './shared/bumpp.
|
|
2
|
-
export { N as NpmScript, P as ProgressEvent, b as bumpConfigDefaults, d as defineConfig, l as loadBumpConfig, a as versionBumpInfo } from './shared/bumpp.
|
|
1
|
+
import { v as versionBump } from './shared/bumpp.QyItIQce.mjs';
|
|
2
|
+
export { N as NpmScript, P as ProgressEvent, b as bumpConfigDefaults, d as defineConfig, l as loadBumpConfig, a as versionBumpInfo } from './shared/bumpp.QyItIQce.mjs';
|
|
3
3
|
import 'node:process';
|
|
4
4
|
import 'args-tokenizer';
|
|
5
5
|
import 'ansis';
|
|
@@ -6702,13 +6702,18 @@ async function normalizeOptions(raw) {
|
|
|
6702
6702
|
"deno.json",
|
|
6703
6703
|
"deno.jsonc"
|
|
6704
6704
|
];
|
|
6705
|
+
const workspaces = [];
|
|
6705
6706
|
if (fs.existsSync("pnpm-workspace.yaml")) {
|
|
6706
|
-
const pnpmWorkspace = await fs$1.readFile("pnpm-workspace.yaml", "utf8");
|
|
6707
|
-
|
|
6708
|
-
const workspacesWithPackageJson = (workspaces.packages ?? []).map((workspace) => `${workspace}/package.json`);
|
|
6709
|
-
const withoutExcludedWorkspaces = workspacesWithPackageJson.filter((workspace) => !workspace.startsWith("!") && !raw.files?.includes(workspace));
|
|
6710
|
-
raw.files = raw.files.concat(withoutExcludedWorkspaces);
|
|
6707
|
+
const pnpmWorkspace = await fs$1.readFile("pnpm-workspace.yaml", "utf8").then(yaml.parse);
|
|
6708
|
+
workspaces.push(...pnpmWorkspace.packages ?? []);
|
|
6711
6709
|
}
|
|
6710
|
+
if (fs.existsSync("package.json")) {
|
|
6711
|
+
const packageJson = await fs$1.readFile("package.json", "utf8").then(JSON.parse);
|
|
6712
|
+
workspaces.push(...packageJson.workspaces ?? []);
|
|
6713
|
+
}
|
|
6714
|
+
const workspacesWithPackageJson = workspaces.map((workspace) => `${workspace}/package.json`);
|
|
6715
|
+
const withoutExcludedWorkspaces = workspacesWithPackageJson.filter((workspace) => !workspace.startsWith("!") && !raw.files?.includes(workspace));
|
|
6716
|
+
raw.files = raw.files.concat(withoutExcludedWorkspaces);
|
|
6712
6717
|
} else {
|
|
6713
6718
|
raw.files = raw.files?.length ? raw.files : ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc", "deno.json", "deno.jsonc"];
|
|
6714
6719
|
}
|
|
@@ -6904,18 +6909,19 @@ function hasScript(manifest, script) {
|
|
|
6904
6909
|
}
|
|
6905
6910
|
|
|
6906
6911
|
async function updateFiles(operation) {
|
|
6907
|
-
const { files } = operation.options;
|
|
6912
|
+
const { files, cwd } = operation.options;
|
|
6908
6913
|
for (const relPath of files) {
|
|
6909
6914
|
const modified = await updateFile(relPath, operation);
|
|
6915
|
+
const absPath = path.resolve(cwd, relPath);
|
|
6910
6916
|
if (modified) {
|
|
6911
6917
|
operation.update({
|
|
6912
6918
|
event: ProgressEvent.FileUpdated,
|
|
6913
|
-
updatedFiles: operation.state.updatedFiles.concat(
|
|
6919
|
+
updatedFiles: operation.state.updatedFiles.concat(absPath)
|
|
6914
6920
|
});
|
|
6915
6921
|
} else {
|
|
6916
6922
|
operation.update({
|
|
6917
6923
|
event: ProgressEvent.FileSkipped,
|
|
6918
|
-
skippedFiles: operation.state.skippedFiles.concat(
|
|
6924
|
+
skippedFiles: operation.state.skippedFiles.concat(absPath)
|
|
6919
6925
|
});
|
|
6920
6926
|
}
|
|
6921
6927
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bumpp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.2.1",
|
|
5
5
|
"description": "Bump version, commit changes, tag, and push to Git",
|
|
6
6
|
"authors": [
|
|
7
7
|
{
|
|
@@ -51,31 +51,31 @@
|
|
|
51
51
|
"node": ">=18"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"ansis": "^4.
|
|
54
|
+
"ansis": "^4.1.0",
|
|
55
55
|
"args-tokenizer": "^0.3.0",
|
|
56
|
-
"c12": "^3.0
|
|
56
|
+
"c12": "^3.1.0",
|
|
57
57
|
"cac": "^6.7.14",
|
|
58
58
|
"escalade": "^3.2.0",
|
|
59
59
|
"jsonc-parser": "^3.3.1",
|
|
60
60
|
"package-manager-detector": "^1.3.0",
|
|
61
61
|
"semver": "^7.7.2",
|
|
62
62
|
"tinyexec": "^1.0.1",
|
|
63
|
-
"tinyglobby": "^0.2.
|
|
63
|
+
"tinyglobby": "^0.2.14",
|
|
64
64
|
"yaml": "^2.8.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@antfu/eslint-config": "^
|
|
68
|
-
"@types/node": "^
|
|
67
|
+
"@antfu/eslint-config": "^5.0.0",
|
|
68
|
+
"@types/node": "^24.1.0",
|
|
69
69
|
"@types/prompts": "^2.4.9",
|
|
70
70
|
"@types/semver": "^7.7.0",
|
|
71
|
-
"eslint": "^9.
|
|
71
|
+
"eslint": "^9.32.0",
|
|
72
72
|
"prompts": "^2.4.2",
|
|
73
73
|
"rimraf": "^6.0.1",
|
|
74
74
|
"tiny-conventional-commits-parser": "^0.0.1",
|
|
75
|
-
"tsx": "^4.
|
|
75
|
+
"tsx": "^4.20.3",
|
|
76
76
|
"typescript": "^5.8.3",
|
|
77
|
-
"unbuild": "^3.
|
|
78
|
-
"vitest": "^3.
|
|
77
|
+
"unbuild": "^3.6.0",
|
|
78
|
+
"vitest": "^3.2.4"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"lint": "eslint .",
|