-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Refactor module resolution logic to have configurable goal extensions #9430
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
Changes from 1 commit
ed46d89
5a3c695
5e40c8e
7894136
fa9bfc8
6a257a4
ef102da
903ad65
b1b31d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,6 @@ | |
| "inputFiles": [ | ||
| "index.ts" | ||
| ], | ||
| "declaration": true, | ||
| "baselineCheck": true, | ||
| "moduleResolution": "node" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "scenario": "Realistic npm package types with package.json", | ||
| "projectRoot": "tests/cases/projects/realisticNpmTypes2", | ||
| "inputFiles": [ | ||
| "index.ts" | ||
| ], | ||
| "baselineCheck": true, | ||
| "moduleResolution": "node" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import m1 = require("m1"); | ||
|
|
||
| const val = m1("works", 42); | ||
| void `${m1.name}: ${val}`; | ||
|
|
||
| export {m1}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are not specifying
allowJs, that's why this is working even with the above bug, as you are never even checking for .js files.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'doh. It's just added by default in so many places that I thought this may be one of them. Added and fixed.