We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef2f2f5 commit b85f723Copy full SHA for b85f723
release/host.js
@@ -11,7 +11,7 @@ var Host = (function () {
11
this.reset();
12
}
13
Host.initLibDefault = function () {
14
- var content = fs.readFileSync(path.join(__dirname, '../node_modules/typescript/bin/lib.d.ts')).toString('utf8');
+ var content = fs.readFileSync(path.resolve(path.dirname(require.resolve('typescript')) + '/lib.d.ts')).toString('utf8');
15
this.libDefault = ts.createSourceFile('__lib.d.ts', content, 0 /* ES3 */, "0"); // Will also work for ES5 & 6
16
};
17
Host.prototype.reset = function () {
0 commit comments