Skip to content

Commit

Permalink
Fix ESM imports (#177)
Browse files Browse the repository at this point in the history
* Patch ts-bridge to fix imports

* Fix lint
  • Loading branch information
FrederikBolding authored May 21, 2024
1 parent 9b9a98f commit a61eb02
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .yarn/patches/@ts-bridge-cli-npm-0.1.4-7b3932d7f6.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/dist/build-type.js b/dist/build-type.js
index 715b7f8a8df344c5becfd4f13b41e45941061b52..62f0b617ee6f63a0367593ae2ee20d8f309011df 100644
--- a/dist/build-type.js
+++ b/dist/build-type.js
@@ -8,7 +8,6 @@ export const BUILD_TYPES = {
declarationExtension: '.d.mts',
target: ModuleKind.ESNext,
getTransformers: (options) => [
- getNamedImportTransformer(options),
getTargetTransformer(ModuleKind.ESNext),
],
getShimsTransformers: (options) => [
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
"test": "jest && jest-it-up",
"test:watch": "jest --watch"
},
"resolutions": {
"@ts-bridge/cli@^0.1.4": "patch:@ts-bridge/cli@npm%3A0.1.4#./.yarn/patches/@ts-bridge-cli-npm-0.1.4-7b3932d7f6.patch"
},
"dependencies": {
"@metamask/scure-bip39": "^2.1.1",
"@metamask/utils": "^8.3.0",
Expand Down
22 changes: 21 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ __metadata:
languageName: node
linkType: hard

"@ts-bridge/cli@npm:^0.1.4":
"@ts-bridge/cli@npm:0.1.4":
version: 0.1.4
resolution: "@ts-bridge/cli@npm:0.1.4"
dependencies:
Expand All @@ -1307,6 +1307,26 @@ __metadata:
languageName: node
linkType: hard

"@ts-bridge/cli@patch:@ts-bridge/cli@npm%3A0.1.4#./.yarn/patches/@ts-bridge-cli-npm-0.1.4-7b3932d7f6.patch::locator=%40metamask%2Fkey-tree%40workspace%3A.":
version: 0.1.4
resolution: "@ts-bridge/cli@patch:@ts-bridge/cli@npm%3A0.1.4#./.yarn/patches/@ts-bridge-cli-npm-0.1.4-7b3932d7f6.patch::version=0.1.4&hash=a25589&locator=%40metamask%2Fkey-tree%40workspace%3A."
dependencies:
chalk: ^5.3.0
resolve.exports: ^2.0.2
yargs: ^17.7.2
peerDependencies:
"@ts-bridge/shims": ^0.1.1
typescript: ">=4.8.0"
peerDependenciesMeta:
"@ts-bridge/shims":
optional: true
bin:
ts-bridge: ./dist/index.js
tsbridge: ./dist/index.js
checksum: b250a9d478663335e86b8460b9e4af787730f7ff4555ef7ba65942811702ac3bb572991cb0c178aa5f98943783bb78ea80fcd5fa20fc0ddad71c7aba963fac78
languageName: node
linkType: hard

"@tsconfig/node10@npm:^1.0.7":
version: 1.0.9
resolution: "@tsconfig/node10@npm:1.0.9"
Expand Down

0 comments on commit a61eb02

Please sign in to comment.