GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||
GeezerVison is showing github.com — Don't emit any source files found under node_modules by billti · Pull Request #9421 · microsoft/TypeScript Conversation
Member
This fixes #6964 to suppress emit for any source files located by searching in node_modules, not just JavaScript files.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we have
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
| |||||||||||||||||||||||||||||
There was an error while loading. Please reload this page.
|
Added fix for #9427, which was caused by related changes for JavaScript. Also changed the API per Mohamed Hegazy (@mhegazy) 's suggestion. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hmmm, must have missed a test file in a commit... all passed on my machine. Will take a look shortly. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -1,4 +1,5 @@ | |||
| maxDepthIncreased/root.ts(4,1): error TS2322: Type 'string' is not assignable to type 'number'. | |||
| maxDepthIncreased/root.ts(7,1): error TS2322: Type 'string' is not assignable to type 'number'. | |||
| maxDepthIncreased/root.ts(8,13): error TS2339: Property 'test' does not exist on type 'typeof "C:/src/TypeScript/tests/cases/projects/NodeModulesSearch/maxDepthIncreased/node_modules/@...'. | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is causing the issue in the GitHub build... need to figure out where the full path is creeping in to the error message.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I removed that one check causing the full path to be in the error for now. The subsequent line would be in error if the wrong file was referenced anyway, so this doesn't really lose any coverage. Hopefully the tests will be green on the CI server (eventually 😩 ) after this change. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Port #9421 to not compile files under from node_modules
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Discovering .ts files under node_modules resulting in them being compiled
There was an error while loading. Please reload this page.