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 #1778: typechecker resolver should take importer's module type -- cjs or esm -- into account when resolving package.json "exports" #1782

Merged
merged 7 commits into from Jun 1, 2022

Conversation

cspotcode
Copy link
Collaborator

@cspotcode cspotcode commented Jun 1, 2022

Fixes #1778

Pending feedback on Discord, hoping to get some guidance on my use of impliedNodeFormat
https://discord.com/channels/508357248330760243/640177429775777792/981402019598315520

@cspotcode cspotcode added this to the 10.8.1 milestone Jun 1, 2022
@codecov
Copy link

codecov bot commented Jun 1, 2022

Codecov Report

Merging #1782 (b124d25) into main (b3dd3f2) will decrease coverage by 0.02%.
The diff coverage is 66.66%.

Impacted Files Coverage Δ
src/resolver-functions.ts 82.69% <66.66%> (-1.31%) ⬇️

@cspotcode cspotcode merged commit 04f4c28 into main Jun 1, 2022
crapStone pushed a commit to Calciumdibromid/CaBr2 that referenced this pull request Jun 17, 2022
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [ts-node](https://typestrong.org/ts-node) ([source](https://github.com/TypeStrong/ts-node)) | devDependencies | patch | [`10.8.0` -> `10.8.1`](https://renovatebot.com/diffs/npm/ts-node/10.8.0/10.8.1) |

---

### Release Notes

<details>
<summary>TypeStrong/ts-node</summary>

### [`v10.8.1`](https://github.com/TypeStrong/ts-node/releases/tag/v10.8.1)

[Compare Source](TypeStrong/ts-node@v10.8.0...v10.8.1)

**Fixed**

-   Fixed [#&#8203;1769](TypeStrong/ts-node#1769): source URLs in source map cache were malformed on Windows, affecting code coverage reports ([#&#8203;1769](TypeStrong/ts-node#1769), [#&#8203;1771](TypeStrong/ts-node#1771)) [@&#8203;cspotcode](https://github.com/cspotcode)
-   Fixed [#&#8203;1778](TypeStrong/ts-node#1778): typechecker was erronously resolving imports from ESM files as if they were from CJS files ([#&#8203;1778](TypeStrong/ts-node#1778), [#&#8203;1782](TypeStrong/ts-node#1782)) [@&#8203;cspotcode](https://github.com/cspotcode)

https://github.com/TypeStrong/ts-node/milestone/14

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Co-authored-by: cabr2-bot <cabr2.help@gmail.com>
Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1393
Co-authored-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
Co-committed-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Module nodenext is resolving to cjs build incorrectly
1 participant