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

Handle realpath early in resolveFile #24

Merged
merged 1 commit into from
Jul 18, 2019
Merged

Handle realpath early in resolveFile #24

merged 1 commit into from
Jul 18, 2019

Conversation

guybedford
Copy link
Contributor

This performs the realpath earlier in resolveFile, which allows the "main": "src/index" to resolve to src/index.ts in Yarn workspaces.

There shouldn't be any performance difference due to the use of a shared realpath cache despite double realpath application in the resolver to support this.

@guybedford guybedford requested a review from styfle as a code owner July 18, 2019 04:18
@codecov-io
Copy link

Codecov Report

Merging #24 into master will decrease coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #24     +/-   ##
=========================================
- Coverage   89.97%   89.88%   -0.1%     
=========================================
  Files          10       10             
  Lines         978      979      +1     
=========================================
  Hits          880      880             
- Misses         98       99      +1
Impacted Files Coverage Δ
src/resolve-dependency.js 100% <100%> (ø) ⬆️
src/node-file-trace.js 90.57% <0%> (-0.73%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c9b968...b85e5b1. Read the comment docs.

Copy link
Member

@styfle styfle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@styfle styfle merged commit d7c11ab into master Jul 18, 2019
@styfle styfle deleted the ts-main branch July 18, 2019 12:26
@styfle styfle restored the ts-main branch July 18, 2019 12:26
@styfle styfle deleted the ts-main branch July 18, 2019 12:26
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.

3 participants