Skip to content

Commit 4cf90e5

Browse files
committed
Update API for 2.0.0 beta 2 of broccoli-typescript-compiler.
1 parent d47ca49 commit 4cf90e5

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

lib/typescript-preprocessor.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,6 @@ class TypeScriptPreprocessor {
2121
this.name = 'ember-cli-typescript';
2222
this.ext = 'ts';
2323
this.options = JSON.parse(JSON.stringify(options));
24-
25-
const tsconfig = readConfig(path.join('.', 'tsconfig.json'))
26-
27-
// The `include` setting is meant for the IDE integration; broccoli manages
28-
// manages its own input files.
29-
tsconfig.include = ['**/*.ts'];
30-
31-
// tsc needs to emit files on the broccoli pipeline, but not in the default
32-
// config. Otherwise its compiled `.js` files may be created inadvertently.
33-
tsconfig.compilerOptions.noEmit = false;
34-
delete tsconfig.compilerOptions.outDir;
35-
36-
this.tsconfig = tsconfig;
3724
}
3825

3926
toTree(inputNode /* , inputPath, outputPath */) {
@@ -47,7 +34,7 @@ class TypeScriptPreprocessor {
4734
annotation: 'TS files',
4835
});
4936

50-
const ts = tsc(tsFiles, { tsconfig: this.tsconfig });
37+
const ts = tsc(tsFiles);
5138

5239
// Put everything together.
5340
return new MergeTrees([js, ts], {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"paths": {}
99
},
1010
"include": [
11-
"app/**/*"
11+
"**/*"
1212
]
1313
}

0 commit comments

Comments
 (0)