Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ESM imports #177

Merged
merged 2 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading