-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Fix #9542 (allow files under node_modules to be included in the compilation). #9607
Changes from all commits
ca874bd
db54bda
2ab1143
a7467a1
b75053c
97025d0
21bf801
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ export {}; | |
//// [app.ts] | ||
import "A" | ||
|
||
//// [index.js] | ||
"use strict"; | ||
//// [app.js] | ||
"use strict"; | ||
require("A"); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,5 @@ export declare var y; | |
import y = require("a"); | ||
|
||
|
||
//// [ref.js] | ||
var x = 1; | ||
//// [b.js] | ||
"use strict"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,5 @@ export declare var y; | |
//// [b.ts] | ||
import y = require("a"); | ||
|
||
//// [ref.js] | ||
var x = 1; | ||
//// [b.js] | ||
"use strict"; |
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.
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.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import * as m1 from "m1"; | ||
m1.f1("test"); | ||
m1.f2.a = "10"; // Error: Should be number | ||
m1.rel = 42; // Error: Should be boolean | ||
|
||
m1.f2.person.age = "10"; // OK if stopped at 2 modules: person will be "any". |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true | ||
} | ||
"allowJs": true, | ||
"maxNodeModuleJsDepth": 1, // Note: Module m1 is already included as a root file | ||
"outDir": "built" | ||
}, | ||
"include": ["**/*"], | ||
"exclude": ["node_modules/m2/**/*"] | ||
} |
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.
sorry about that. i had this fixed a while back in the transforms branch, but never ported it back.