Skip to content

Commit 70fa640

Browse files
authored
Merge branch 'master' into fix-ignore-pattern
2 parents 34902dd + 2bc9fd1 commit 70fa640

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

lib/incremental-typescript-compiler/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const path = require('path');
77
const fs = require('fs-extra');
88
const resolve = require('resolve');
99
const compile = require('../utilities/compile');
10-
const ts = require('typescript');
1110
const TypescriptOutput = require('./typescript-output-plugin');
1211
const CompilerState = require('./compiler-state');
1312

@@ -28,6 +27,7 @@ module.exports = class IncrementalTypescriptCompiler {
2827
this.addons = this._discoverAddons(project, []);
2928
this.state = new CompilerState();
3029

30+
this._ts = project.require('typescript');
3131
this._watchProgram = null;
3232
}
3333

@@ -125,10 +125,10 @@ module.exports = class IncrementalTypescriptCompiler {
125125
}
126126

127127
_formatDiagnosticMessage(diagnostic) {
128-
return ts.formatDiagnostic(diagnostic, {
128+
return this._ts.formatDiagnostic(diagnostic, {
129129
getCanonicalFileName: path => path,
130-
getCurrentDirectory: ts.sys.getCurrentDirectory,
131-
getNewLine: () => ts.sys.newLine,
130+
getCurrentDirectory: this._ts.sys.getCurrentDirectory,
131+
getNewLine: () => this._ts.sys.newLine,
132132
});
133133
}
134134

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@
9797
"resolutions": {
9898
"@types/ember": "2.8.13"
9999
},
100-
"peerDependencies": {
101-
"typescript": "^2.4.2"
102-
},
103100
"engines": {
104101
"node": "^4.5 || 6.* || >= 7.*"
105102
},

0 commit comments

Comments
 (0)