lukeed / resolve.exports

A tiny (952b), correct, general-purpose, and configurable `"exports"` and `"imports"` resolver without file-system reliance
MIT License
368 stars 15 forks source link

2.0 #24

Closed lukeed closed 1 year ago

lukeed commented 1 year ago

Breaking change because the resolve function (as well as the new exports and imports functions) can now return string[] | undefined instead of string | undefined.

lukeed commented 1 year ago

definitely have 2 tests covering the 1 line that nyc & codecov thinks isn't being covered

codecov-commenter commented 1 year ago

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (23b6e2d) compared to base (dc499dc). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #24 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 1 3 +2 Lines 61 84 +23 Branches 0 43 +43 ========================================= + Hits 61 84 +23 ``` | [Impacted Files](https://codecov.io/gh/lukeed/resolve.exports/pull/24?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Luke+Edwards) | Coverage Δ | | |---|---|---| | [src/index.ts](https://codecov.io/gh/lukeed/resolve.exports/pull/24?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Luke+Edwards#diff-c3JjL2luZGV4LnRz) | `100.00% <100.00%> (ø)` | | | [src/legacy.ts](https://codecov.io/gh/lukeed/resolve.exports/pull/24?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Luke+Edwards#diff-c3JjL2xlZ2FjeS50cw==) | `100.00% <100.00%> (ø)` | | | [src/utils.ts](https://codecov.io/gh/lukeed/resolve.exports/pull/24?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Luke+Edwards#diff-c3JjL3V0aWxzLnRz) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Luke+Edwards). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Luke+Edwards)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.