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 TypeScript resolution for @magic-ext/* packages when using modern module resolution (node16 etc) #670

Merged

Conversation

rjwebb
Copy link
Contributor

@rjwebb rjwebb commented Nov 21, 2023

📦 Pull Request

This PR updates the package.json files for all of the @magic-ext packages (apart from aptos and solana, which already had this change applied).

This is essentially the same change that has already been applied in #517 by @octave08 (why wasn't this done for all packages?) and proposed in #626

✅ Fixed Issues

Fixes #669

🚨 Test instructions

Create a new TypeScript web app that uses node16 or nodenext module resolution, try to import these packages, TypeScript should be able to perform type checking based on the types of the imported objects.

⚠️ Don't forget to add a semver label!

Please only add one label:

  • patch: Bug Fix?
  • minor: New Feature?
  • major: Breaking Change?
  • skip-release: It's unnecessary to publish this change.

…ipt, for algorand, auth, avalanche, bitcoin, conflux, cosmos, ed25519, flow, gdkms, harmony, hedera, icon, near, oauth, oidc, polkadot, react-native-bare-oauth, react-native-expo-oauth, taquito, terra, tezos, webauthn and zilliqa
@rjwebb
Copy link
Contributor Author

rjwebb commented Nov 21, 2023

It looks like I don't have permissions to change the labels on the PR - I assume this is restricted to team members. I would consider this to be a patch PR.

@joshuascan joshuascan added the patch Increment the patch version when merged label Nov 21, 2023
@joshuascan joshuascan self-requested a review November 21, 2023 17:53
@joshuascan joshuascan added this pull request to the merge queue Nov 21, 2023
Merged via the queue into magiclabs:master with commit a016380 Nov 21, 2023
3 of 4 checks passed
@Ariflo Ariflo added the released This issue/pull request has been released. label Nov 21, 2023
@rjwebb rjwebb deleted the rjwebb/669-fix-node16-magic-ext-imports branch November 21, 2023 19:21
@rjwebb
Copy link
Contributor Author

rjwebb commented Nov 21, 2023

Thank you so much - this is an amazingly fast response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript cannot access types of @magic-ext/* packages when moduleResolution = "node16" in tsconfig.json
3 participants