Skip to content

Commit 184859d

Browse files
OttoAllmendingerllm-git
andcommitted
feat(utxo-bin): allow imports from utxo-core and noble/curves
Update eslint configuration to allow importing from specific modules that support deep imports via exports directive. Issue: BTC-2170 Co-authored-by: llm-git <[email protected]>
1 parent 52c7cc2 commit 184859d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

modules/utxo-bin/.eslintrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
"extends": "../../.eslintrc.json",
33
"rules": {
44
"@typescript-eslint/explicit-module-boundary-types": "error",
5+
"import/no-internal-modules": [
6+
"error",
7+
{
8+
// these are false-positives
9+
// certain packages explicitly ALLOW deep imports via the `exports` directive in package.json
10+
"allow": [
11+
"@bitgo/utxo-core/*",
12+
"@noble/curves/*"
13+
]
14+
}
15+
],
516
"indent": "off"
617
}
718
}

modules/utxo-bin/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"@bitgo/blockapis": "^1.10.18",
3030
"@bitgo/statics": "^54.7.0",
3131
"@bitgo/unspents": "^0.48.3",
32+
"@bitgo/utxo-core": "^1.11.0",
3233
"@bitgo/utxo-lib": "^11.6.1",
3334
"@bitgo/wasm-miniscript": "2.0.0-beta.7",
3435
"@noble/curves": "1.8.1",

0 commit comments

Comments
 (0)