Skip to content

Commit 765acf4

Browse files
balzssclaude
andcommitted
chore: add pnpm override for dargs to fix bump command
The bump command was failing with "TypeError: dargs is not a function" due to a CommonJS/ESM module incompatibility. The issue occurs because: - [email protected] (used by lerna) is CommonJS and requires [email protected] - pnpm's hoisting was resolving to [email protected] (pure ESM) instead - CommonJS require() cannot load pure ESM modules, causing the error This adds a pnpm override to force [email protected] for git-raw-commits, ensuring the correct CommonJS-compatible version is used. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent b58a1bc commit 765acf4

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"overrides": {
4747
"react": "18.3.1",
4848
"react-dom": "18.3.1",
49-
"@types/react": "18.3.26"
49+
"@types/react": "18.3.26",
50+
"git-raw-commits>dargs": "7.0.0"
5051
}
5152
},
5253
"devDependencies": {
@@ -106,7 +107,8 @@
106107
"tar": "Lerna 8 needs tar for this fixed(?) bug: https://github.com/lerna/lerna/issues/4005",
107108
"eslint-import-resolver-typescript": "^3.6.1 not supported by ESLint 9",
108109
"eslint-plugin-import-x": "^3.1.0 not supported by ESLint 9",
109-
"@types/jest": "needed because https://github.com/testing-library/jest-dom/issues/544 recheck if fixed"
110+
"@types/jest": "needed because https://github.com/testing-library/jest-dom/issues/544 recheck if fixed",
111+
"git-raw-commits>dargs": "Force [email protected] (CommonJS) for [email protected] used by lerna. pnpm hoisting was causing ESM [email protected] to be resolved instead, breaking 'pnpm run bump' with 'TypeError: dargs is not a function'"
110112
},
111113
"engines": {
112114
"node": ">=22",

pnpm-lock.yaml

Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)