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

Ensure local TypeScript is always a project-scoped lookup #247

Merged
merged 1 commit into from
Jan 29, 2019
Merged

Conversation

guybedford
Copy link
Contributor

This updates the resolution of the local TypeScript lookup to be based on doing a node_modules lookup from the entry point itself of the ncc build operation. The previous check would only check for TypeScript once and from the ncc location, therefore using the npm install -g typescript instead of the local project TypeScript.

I'm working on a separate PR to add CLI runner coverage, and will include tests for this on that branch.

@codecov-io
Copy link

Codecov Report

Merging #247 into master will decrease coverage by 0.08%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #247      +/-   ##
==========================================
- Coverage   69.25%   69.17%   -0.09%     
==========================================
  Files          16       16              
  Lines         670      665       -5     
==========================================
- Hits          464      460       -4     
+ Misses        206      205       -1
Impacted Files Coverage Δ
src/index.js 69.01% <100%> (+0.21%) ⬆️
src/loaders/ts-loader.js 91.66% <100%> (+2.77%) ⬆️
src/typescript.js 100% <100%> (ø)

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 3136042...f708c51. Read the comment docs.

@rauchg rauchg merged commit 04fbbe7 into master Jan 29, 2019
@rauchg rauchg deleted the ts-project branch January 29, 2019 16:44
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