-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9459 from Microsoft/dontEmitNodeModules-2.0
Port #9421 to not compile files under from node_modules
- Loading branch information
Showing
15 changed files
with
71 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,6 @@ export {}; | |
//// [app.ts] | ||
import "A" | ||
|
||
//// [index.js] | ||
"use strict"; | ||
//// [app.js] | ||
"use strict"; | ||
require("A"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/maxDepthIncreased/root.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
define(["require", "exports", "m1"], function (require, exports, m1) { | ||
define(["require", "exports", "m1", "m4"], function (require, exports, m1, m4) { | ||
"use strict"; | ||
m1.f1("test"); | ||
m1.f2.a = 10; | ||
m1.f2.person.age = "10"; // Error: Should be number | ||
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly | ||
var r2 = 3 + m4.foo; // Should be OK if correctly using the @types .d.ts file | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...s/baselines/reference/project/nodeModulesMaxDepthIncreased/node/maxDepthIncreased/root.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
"use strict"; | ||
var m1 = require("m1"); | ||
var m4 = require("m4"); | ||
m1.f1("test"); | ||
m1.f2.a = 10; | ||
m1.f2.person.age = "10"; // Error: Should be number | ||
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly | ||
var r2 = 3 + m4.foo; // Should be OK if correctly using the @types .d.ts file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/cases/projects/NodeModulesSearch/maxDepthIncreased/node_modules/@types/m4/entry.d.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
tests/cases/projects/NodeModulesSearch/maxDepthIncreased/node_modules/@types/m4/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
tests/cases/projects/NodeModulesSearch/maxDepthIncreased/node_modules/m4/entry.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
tests/cases/projects/NodeModulesSearch/maxDepthIncreased/node_modules/m4/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 6 additions & 1 deletion
7
tests/cases/projects/NodeModulesSearch/maxDepthIncreased/root.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
import * as m1 from "m1"; | ||
import * as m4 from "m4"; | ||
|
||
m1.f1("test"); | ||
m1.f2.a = 10; | ||
m1.f2.person.age = "10"; // Error: Should be number | ||
|
||
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly | ||
|
||
let r2 = 3 + m4.foo; // Should be OK if correctly using the @types .d.ts file |