⬆️ Upgrade: bump @picgo/bump-version to 3.0.0

3.0.0 ships as ESM and renamed the configs it exposes to consumers, so
the cz-customizable and commitlint paths gain their .cjs extensions.

It also stopped shipping contributor tooling as runtime dependencies,
which this repo was relying on: @commitlint/cli reached the commitlint
script only as a transitive dependency of bump-version 2, so the upgrade
would have removed the binary the commit-msg hook needs. It is now a
direct devDependency.

Drops the "husky" field, which has been dead config since c84d542 moved
this repo to husky 9 — v9 reads .husky/ and ignores it entirely. The
circular-dependency check it used to declare has been unhooked ever
since, so lint:dpdm moves to .husky/pre-commit where it actually runs.
Confirmed it both passes on the current tree and fails on a deliberately
introduced cycle, so it is a real gate rather than a no-op.
This commit is contained in:
PiEgg
2026-08-22 22:58:01 +08:00
parent d7d2c22994
commit 07ec7068a5
3 changed files with 527 additions and 777 deletions
+1
View File
@@ -1 +1,2 @@
pnpm check
pnpm run lint:dpdm
+4 -8
View File
@@ -99,9 +99,10 @@
"devDependencies": {
"@aws-sdk/client-s3": "^3.276.0",
"@aws-sdk/lib-storage": "^3.276.0",
"@commitlint/cli": "^21.2.2",
"@eslint/js": "^9.39.1",
"@molunerfinn/vite-plugin-electron-renderer": "^0.14.7",
"@picgo/bump-version": "^2.0.0",
"@picgo/bump-version": "^3.0.0",
"@stylistic/eslint-plugin": "^5.6.1",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.2.1",
@@ -160,7 +161,7 @@
},
"commitlint": {
"extends": [
"./node_modules/@picgo/bump-version/commitlint-picgo"
"./node_modules/@picgo/bump-version/commitlint-picgo/index.cjs"
]
},
"config": {
@@ -168,12 +169,7 @@
"path": "./node_modules/cz-customizable"
},
"cz-customizable": {
"config": "./node_modules/@picgo/bump-version/.cz-config.js"
}
},
"husky": {
"hooks": {
"commit-msg": "npm run lint:dpdm && commitlint -E HUSKY_GIT_PARAMS"
"config": "./node_modules/@picgo/bump-version/.cz-config.cjs"
}
}
}
+522 -769
View File
File diff suppressed because it is too large Load Diff