Skip to content

Commit d049b8c

Browse files
fix(babylonlabs-io-btc-staking-ts): resolve build issue caused by dependency conflicts
ISSUE: - Babylonlabs package (@bitgo/babylonlabs-io-btc-staking-ts) was failing to build - Root cause: Lerna 8 upgrade introduced newer minimatch versions (9.x-10.x) that conflicted with older @types/[email protected] interface expectations - Error: Type 'IOptions' is not assignable to type 'IOptions' in dts-bundle-generator SOLUTION: - Add @types/glob@^8.1.0 locally to babylonlabs package (compatible with newer minimatch versions) - Keep dts-bundle-generator at original version ^9.3.1 (no version bump needed) - Use local dependency approach to keep fix targeted to affected package only TECHNICAL DETAILS: - Lerna 8 brings in [email protected] via NX integration - @types/[email protected] expected [email protected] interface - @types/[email protected] is compatible with [email protected] - Local dependency prevents affecting other packages in the monorepo VERIFICATION: - Babylonlabs package builds successfully from clean cache - Other packages remain unaffected - dts-bundle-generator works correctly with updated type definitions TICKET: WP-6096
1 parent dd62c38 commit d049b8c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

modules/babylonlabs-io-btc-staking-ts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"author": "Babylon Labs Ltd.",
3333
"license": "SEE LICENSE IN LICENSE",
3434
"devDependencies": {
35+
"@types/glob": "^8.1.0",
3536
"dts-bundle-generator": "^9.3.1",
3637
"esbuild": "^0.20.2",
3738
"nanoevents": "^9.1.0"

yarn.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5567,6 +5567,14 @@
55675567
"@types/minimatch" "*"
55685568
"@types/node" "*"
55695569

5570+
"@types/glob@^8.1.0":
5571+
version "8.1.0"
5572+
resolved "https://registry.npmjs.org/@types/glob/-/glob-8.1.0.tgz#b63e70155391b0584dce44e7ea25190bbc38f2fc"
5573+
integrity sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==
5574+
dependencies:
5575+
"@types/minimatch" "^5.1.2"
5576+
"@types/node" "*"
5577+
55705578
"@types/hoist-non-react-statics@*":
55715579
version "3.3.7"
55725580
resolved "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.7.tgz#306e3a3a73828522efa1341159da4846e7573a6c"
@@ -5690,6 +5698,11 @@
56905698
resolved "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40"
56915699
integrity sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==
56925700

5701+
"@types/minimatch@^5.1.2":
5702+
version "5.1.2"
5703+
resolved "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz#07508b45797cb81ec3f273011b054cd0755eddca"
5704+
integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==
5705+
56935706
"@types/minimist@^1.2.0":
56945707
version "1.2.5"
56955708
resolved "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.5.tgz#ec10755e871497bcd83efe927e43ec46e8c0747e"

0 commit comments

Comments
 (0)