- updating dependencies

This commit is contained in:
ezolenko 2018-02-01 20:57:19 -07:00
parent b3e32e51a9
commit f57f8e7fb9
10 changed files with 242 additions and 169 deletions

2
dist/index.d.ts vendored
View File

@ -10,5 +10,5 @@ export default function typescript(options?: Partial<IOptions>): {
load(id: string): string | undefined;
transform(this: IRollupContext, code: string, id: string): ICode | undefined;
ongenerate(): void;
onwrite({dest, file}: IRollupOptions): void;
onwrite({ dest, file }: IRollupOptions): void;
};

View File

@ -7655,7 +7655,7 @@ var lodash = createCommonjsModule(function (module, exports) {
* _.join(['a', 'b', 'c'], '~');
* // => 'a~b~c'
*/
function join$$1(array, separator) {
function join(array, separator) {
return array == null ? '' : nativeJoin.call(array, separator);
}
@ -16787,7 +16787,7 @@ var lodash = createCommonjsModule(function (module, exports) {
lodash.isUndefined = isUndefined;
lodash.isWeakMap = isWeakMap;
lodash.isWeakSet = isWeakSet;
lodash.join = join$$1;
lodash.join = join;
lodash.kebabCase = kebabCase;
lodash.last = last;
lodash.lastIndexOf = lastIndexOf;
@ -17239,7 +17239,7 @@ function setTypescriptModule(override) {
tsModule = override;
}
function normalize$1(fileName) {
function normalize(fileName) {
return fileName.split("\\").join("/");
}
@ -17255,14 +17255,14 @@ var LanguageServiceHost = /** @class */ (function () {
this.versions = {};
};
LanguageServiceHost.prototype.setSnapshot = function (fileName, data) {
fileName = normalize$1(fileName);
fileName = normalize(fileName);
var snapshot = tsModule.ScriptSnapshot.fromString(data);
this.snapshots[fileName] = snapshot;
this.versions[fileName] = (this.versions[fileName] || 0) + 1;
return snapshot;
};
LanguageServiceHost.prototype.getScriptSnapshot = function (fileName) {
fileName = normalize$1(fileName);
fileName = normalize(fileName);
if (lodash_8(this.snapshots, fileName))
return this.snapshots[fileName];
if (fs.existsSync(fileName)) {
@ -17276,7 +17276,7 @@ var LanguageServiceHost = /** @class */ (function () {
return this.cwd;
};
LanguageServiceHost.prototype.getScriptVersion = function (fileName) {
fileName = normalize$1(fileName);
fileName = normalize(fileName);
return (this.versions[fileName] || 0).toString();
};
LanguageServiceHost.prototype.getScriptFileNames = function () {
@ -17439,26 +17439,29 @@ Graph.prototype.nodes = function() {
};
Graph.prototype.sources = function() {
return lodash_1$1.filter(this.nodes(), lodash_1$1.bind(function(v) {
return lodash_1$1.isEmpty(this._in[v]);
}, this));
var self = this;
return lodash_1$1.filter(this.nodes(), function(v) {
return lodash_1$1.isEmpty(self._in[v]);
});
};
Graph.prototype.sinks = function() {
return lodash_1$1.filter(this.nodes(), lodash_1$1.bind(function(v) {
return lodash_1$1.isEmpty(this._out[v]);
}, this));
var self = this;
return lodash_1$1.filter(this.nodes(), function(v) {
return lodash_1$1.isEmpty(self._out[v]);
});
};
Graph.prototype.setNodes = function(vs, value) {
var args = arguments;
lodash_1$1.each(vs, lodash_1$1.bind(function(v) {
var self = this;
lodash_1$1.each(vs, function(v) {
if (args.length > 1) {
this.setNode(v, value);
self.setNode(v, value);
} else {
this.setNode(v);
self.setNode(v);
}
}, this));
});
return this;
};
@ -17500,9 +17503,9 @@ Graph.prototype.removeNode = function(v) {
if (this._isCompound) {
this._removeFromParentsChildList(v);
delete this._parent[v];
lodash_1$1.each(this.children(v), lodash_1$1.bind(function(child) {
this.setParent(child);
}, this));
lodash_1$1.each(this.children(v), function(child) {
self.setParent(child);
});
delete this._children[v];
}
lodash_1$1.each(lodash_1$1.keys(this._in[v]), removeEdge);
@ -17531,7 +17534,7 @@ Graph.prototype.setParent = function(v, parent) {
ancestor = this.parent(ancestor)) {
if (ancestor === v) {
throw new Error("Setting " + parent+ " as parent of " + v +
" would create create a cycle");
" would create a cycle");
}
}
@ -17596,6 +17599,16 @@ Graph.prototype.neighbors = function(v) {
}
};
Graph.prototype.isLeaf = function (v) {
var neighbors;
if (this.isDirected()) {
neighbors = this.successors(v);
} else {
neighbors = this.neighbors(v);
}
return neighbors.length === 0;
};
Graph.prototype.filterNodes = function(filter) {
var copy = new this.constructor({
directed: this._isDirected,
@ -17605,19 +17618,19 @@ Graph.prototype.filterNodes = function(filter) {
copy.setGraph(this.graph());
lodash_1$1.each(this._nodes, lodash_1$1.bind(function(value, v) {
var self = this;
lodash_1$1.each(this._nodes, function(value, v) {
if (filter(v)) {
copy.setNode(v, value);
}
}, this));
});
lodash_1$1.each(this._edgeObjs, lodash_1$1.bind(function(e) {
lodash_1$1.each(this._edgeObjs, function(e) {
if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
copy.setEdge(e, this.edge(e));
copy.setEdge(e, self.edge(e));
}
}, this));
});
var self = this;
var parents = {};
function findParent(v) {
var parent = self.parent(v);
@ -17844,7 +17857,7 @@ function edgeObjToId(isDirected, edgeObj) {
return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
}
var version = '2.1.1';
var version = '2.1.5';
// Includes only the "core" of graphlib
var lib = {
@ -18458,8 +18471,8 @@ var graphlib = {
version: lib.version
};
var graphlib_1 = graphlib.alg;
var graphlib_2 = graphlib.Graph;
var graphlib_1 = graphlib.Graph;
var graphlib_3 = graphlib.alg;
var objectHash_1 = createCommonjsModule(function (module, exports) {
exports = module.exports = objectHash;
@ -19546,7 +19559,7 @@ var TsCache = /** @class */ (function () {
rollupConfig: this.rollupConfig,
tsVersion: tsModule.version,
});
this.dependencyTree = new graphlib_2({ directed: true });
this.dependencyTree = new graphlib_1({ directed: true });
this.dependencyTree.setDefaultNodeLabel(function (_node) { return ({ dirty: false }); });
var automaticTypes = lodash_7(tsModule.getAutomaticTypeDirectiveNames(options, tsModule.sys), function (entry) { return tsModule.resolveTypeReferenceDirective(entry, undefined, options, tsModule.sys); })
.filter(function (entry) { return entry.resolvedTypeReferenceDirective && entry.resolvedTypeReferenceDirective.resolvedFileName; })
@ -19569,9 +19582,9 @@ var TsCache = /** @class */ (function () {
this.dependencyTree.setEdge(importer, importee);
};
TsCache.prototype.walkTree = function (cb) {
var acyclic = graphlib_1.isAcyclic(this.dependencyTree);
var acyclic = graphlib_3.isAcyclic(this.dependencyTree);
if (acyclic) {
lodash_2(graphlib_1.topsort(this.dependencyTree), function (id) { return cb(id); });
lodash_2(graphlib_3.topsort(this.dependencyTree), function (id) { return cb(id); });
return;
}
this.context.info(safe_4("import tree has cycles"));
@ -19654,7 +19667,7 @@ var TsCache = /** @class */ (function () {
return label.dirty;
if (this.ambientTypesDirty)
return true;
var dependencies = graphlib_1.dijkstra(this.dependencyTree, id);
var dependencies = graphlib_3.dijkstra(this.dependencyTree, id);
return lodash_4(dependencies, function (dependency, node) {
if (!node || dependency.distance === Infinity)
return false;
@ -19926,7 +19939,7 @@ function typescript(options) {
printDiagnostics(contextWrapper, diagnostics, parsedConfig.options.pretty === true);
}
if (result && result.dts) {
var key_1 = normalize$1(id);
var key_1 = normalize(id);
declarations[key_1] = result.dts;
context.debug(function () { return safe_5("generated declarations") + " for '" + key_1 + "'"; });
result.dts = undefined;
@ -19952,7 +19965,7 @@ function typescript(options) {
var dest = _a.dest, file = _a.file;
if (parsedConfig.options.declaration) {
lodash_2(parsedConfig.fileNames, function (name) {
var key = normalize$1(name);
var key = normalize(name);
if (lodash_8(declarations, key) || !filter(key))
return;
context.debug(function () { return "generating missed declarations for '" + key + "'"; });

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,8 @@
/* eslint-disable */
import { existsSync, readFileSync, readdirSync, renameSync } from 'fs';
import { existsSync, readdirSync, renameSync, readFileSync } from 'fs';
import crypto from 'crypto';
import { emptyDirSync, ensureFileSync, readJsonSync, removeSync, writeJsonSync } from 'fs-extra';
import { dirname, isAbsolute, join, normalize, relative } from 'path';
import { dirname, isAbsolute, join, relative, normalize } from 'path';
import { sync } from 'resolve';
/*! *****************************************************************************
@ -17435,26 +17435,29 @@ Graph.prototype.nodes = function() {
};
Graph.prototype.sources = function() {
return lodash_1$1.filter(this.nodes(), lodash_1$1.bind(function(v) {
return lodash_1$1.isEmpty(this._in[v]);
}, this));
var self = this;
return lodash_1$1.filter(this.nodes(), function(v) {
return lodash_1$1.isEmpty(self._in[v]);
});
};
Graph.prototype.sinks = function() {
return lodash_1$1.filter(this.nodes(), lodash_1$1.bind(function(v) {
return lodash_1$1.isEmpty(this._out[v]);
}, this));
var self = this;
return lodash_1$1.filter(this.nodes(), function(v) {
return lodash_1$1.isEmpty(self._out[v]);
});
};
Graph.prototype.setNodes = function(vs, value) {
var args = arguments;
lodash_1$1.each(vs, lodash_1$1.bind(function(v) {
var self = this;
lodash_1$1.each(vs, function(v) {
if (args.length > 1) {
this.setNode(v, value);
self.setNode(v, value);
} else {
this.setNode(v);
self.setNode(v);
}
}, this));
});
return this;
};
@ -17496,9 +17499,9 @@ Graph.prototype.removeNode = function(v) {
if (this._isCompound) {
this._removeFromParentsChildList(v);
delete this._parent[v];
lodash_1$1.each(this.children(v), lodash_1$1.bind(function(child) {
this.setParent(child);
}, this));
lodash_1$1.each(this.children(v), function(child) {
self.setParent(child);
});
delete this._children[v];
}
lodash_1$1.each(lodash_1$1.keys(this._in[v]), removeEdge);
@ -17527,7 +17530,7 @@ Graph.prototype.setParent = function(v, parent) {
ancestor = this.parent(ancestor)) {
if (ancestor === v) {
throw new Error("Setting " + parent+ " as parent of " + v +
" would create create a cycle");
" would create a cycle");
}
}
@ -17592,6 +17595,16 @@ Graph.prototype.neighbors = function(v) {
}
};
Graph.prototype.isLeaf = function (v) {
var neighbors;
if (this.isDirected()) {
neighbors = this.successors(v);
} else {
neighbors = this.neighbors(v);
}
return neighbors.length === 0;
};
Graph.prototype.filterNodes = function(filter) {
var copy = new this.constructor({
directed: this._isDirected,
@ -17601,19 +17614,19 @@ Graph.prototype.filterNodes = function(filter) {
copy.setGraph(this.graph());
lodash_1$1.each(this._nodes, lodash_1$1.bind(function(value, v) {
var self = this;
lodash_1$1.each(this._nodes, function(value, v) {
if (filter(v)) {
copy.setNode(v, value);
}
}, this));
});
lodash_1$1.each(this._edgeObjs, lodash_1$1.bind(function(e) {
lodash_1$1.each(this._edgeObjs, function(e) {
if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
copy.setEdge(e, this.edge(e));
copy.setEdge(e, self.edge(e));
}
}, this));
});
var self = this;
var parents = {};
function findParent(v) {
var parent = self.parent(v);
@ -17840,7 +17853,7 @@ function edgeObjToId(isDirected, edgeObj) {
return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
}
var version = '2.1.1';
var version = '2.1.5';
// Includes only the "core" of graphlib
var lib = {
@ -18454,8 +18467,8 @@ var graphlib = {
version: lib.version
};
var graphlib_1 = graphlib.alg;
var graphlib_2 = graphlib.Graph;
var graphlib_1 = graphlib.Graph;
var graphlib_3 = graphlib.alg;
var objectHash_1 = createCommonjsModule(function (module, exports) {
exports = module.exports = objectHash;
@ -19542,7 +19555,7 @@ var TsCache = /** @class */ (function () {
rollupConfig: this.rollupConfig,
tsVersion: tsModule.version,
});
this.dependencyTree = new graphlib_2({ directed: true });
this.dependencyTree = new graphlib_1({ directed: true });
this.dependencyTree.setDefaultNodeLabel(function (_node) { return ({ dirty: false }); });
var automaticTypes = lodash_7(tsModule.getAutomaticTypeDirectiveNames(options, tsModule.sys), function (entry) { return tsModule.resolveTypeReferenceDirective(entry, undefined, options, tsModule.sys); })
.filter(function (entry) { return entry.resolvedTypeReferenceDirective && entry.resolvedTypeReferenceDirective.resolvedFileName; })
@ -19565,9 +19578,9 @@ var TsCache = /** @class */ (function () {
this.dependencyTree.setEdge(importer, importee);
};
TsCache.prototype.walkTree = function (cb) {
var acyclic = graphlib_1.isAcyclic(this.dependencyTree);
var acyclic = graphlib_3.isAcyclic(this.dependencyTree);
if (acyclic) {
lodash_2(graphlib_1.topsort(this.dependencyTree), function (id) { return cb(id); });
lodash_2(graphlib_3.topsort(this.dependencyTree), function (id) { return cb(id); });
return;
}
this.context.info(safe_4("import tree has cycles"));
@ -19650,7 +19663,7 @@ var TsCache = /** @class */ (function () {
return label.dirty;
if (this.ambientTypesDirty)
return true;
var dependencies = graphlib_1.dijkstra(this.dependencyTree, id);
var dependencies = graphlib_3.dijkstra(this.dependencyTree, id);
return lodash_4(dependencies, function (dependency, node) {
if (!node || dependency.distance === Infinity)
return false;

File diff suppressed because one or more lines are too long

211
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "rollup-plugin-typescript2",
"version": "0.10.1",
"version": "0.11.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -10,9 +10,9 @@
"dev": true
},
"@types/fs-extra": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-4.0.3.tgz",
"integrity": "sha512-cUE7dc4RJsRPCk8mbrgMAaglugcJbf1Oxp7DYi/aOj4+ggCxzddDQFZwCKWnqrLv4LJ89apyNJ7Y3pN79tAPVg==",
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-5.0.0.tgz",
"integrity": "sha512-qtxDULQKUenuaDLW003CgC+0T0eiAfH3BrH+vSt87GLzbz5EZ6Ox6mv9rMttvhDOatbb9nYh0E1m7ydoYwUrAg==",
"dev": true,
"requires": {
"@types/node": "8.0.47"
@ -24,15 +24,15 @@
"dev": true
},
"@types/lodash": {
"version": "4.14.80",
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.80.tgz",
"integrity": "sha512-FumgRtCaxilKUcgMnZCzH6K3gntIwLiLLIaR+UBGNZpT/N3ne2dKrDSGoGIxSHYpAjnq6kIVV0r51U+kLXX59A==",
"version": "4.14.100",
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.100.tgz",
"integrity": "sha512-RdmitCjynsHc+U09x9LEmMrxNz2lgmeK3jMrfZFO38WZ/wTqojrpe4nRCLzLMLnL+s+8apNofGmQ9KdMxPcfCA==",
"dev": true
},
"@types/node": {
"version": "8.0.47",
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.47.tgz",
"integrity": "sha512-kOwL746WVvt/9Phf6/JgX/bsGQvbrK5iUgzyfwZNcKVFcjAUVSpF9HxevLTld2SG9aywYHOILj38arDdY1r/iQ==",
"integrity": "sha1-lo5Zb5Gs1ZBpBUVYoAcIxEXKMMI=",
"dev": true
},
"@types/object-hash": {
@ -49,9 +49,9 @@
}
},
"acorn": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-5.2.1.tgz",
"integrity": "sha512-jG0u7c4Ly+3QkkW18V+NRDN+4bWHdln30NL1ZL2AvFZZmQe/BfopYCtghCKKVBUSetZ4QKcyA0pY6/4Gw8Pv8w==",
"version": "5.4.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-5.4.0.tgz",
"integrity": "sha512-bkLTrtPfRASTxDXFaih7SbeYSsQ8MjrqCQKMrgZ4Hc7kYI//WVU6rDTAIqVrAudjgMFQEGthYfodtaw8dTRJrg==",
"dev": true
},
"ansi-regex": {
@ -75,6 +75,15 @@
"normalize-path": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz"
}
},
"argparse": {
"version": "1.0.9",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz",
"integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY=",
"dev": true,
"requires": {
"sprintf-js": "1.0.3"
}
},
"arr-diff": {
"version": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz",
"integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=",
@ -149,23 +158,9 @@
"repeat-element": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz"
}
},
"browser-resolve": {
"version": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.2.tgz",
"integrity": "sha1-j/CbCixCFxihBRwmCzLkj0QpOM4=",
"dev": true,
"requires": {
"resolve": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz"
},
"dependencies": {
"resolve": {
"version": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz",
"integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=",
"dev": true
}
}
},
"builtin-modules": {
"version": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz",
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz",
"integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=",
"dev": true
},
@ -236,9 +231,9 @@
"dev": true
},
"commander": {
"version": "2.12.2",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.12.2.tgz",
"integrity": "sha512-BFnaq5ZOGcDN7FlrtBT4xxkgIToalIIxwjxLWVJ8bGTpe1LroqMiqQXdA7ygc7CRvaYS+9zfPGFnJqFSayx+AA==",
"version": "2.13.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz",
"integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==",
"dev": true
},
"concat-map": {
@ -254,7 +249,7 @@
"diff": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/diff/-/diff-3.4.0.tgz",
"integrity": "sha512-QpVuMTEoJMF7cKzi6bvWhRulU1fZqZnvyVQgNhPaxxuTYwyjn/j1v9falseQ/uXWwPnO56RBfwtg4h/EQXmucA==",
"integrity": "sha1-sdhVB9rzlkgo3lSzfQ1zumfdpWw=",
"dev": true
},
"escape-string-regexp": {
@ -263,6 +258,12 @@
"integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
"dev": true
},
"esprima": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz",
"integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==",
"dev": true
},
"estree-walker": {
"version": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.3.1.tgz",
"integrity": "sha1-5rGlHPcpJSTnI3wxLl/mZgwc4ao="
@ -321,12 +322,13 @@
}
},
"fs-extra": {
"version": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.2.tgz",
"integrity": "sha1-+RcExT0bRh+JNFKwwwfZmXZHq2s=",
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz",
"integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==",
"requires": {
"graceful-fs": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
"jsonfile": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
"universalify": "https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz"
"jsonfile": "4.0.0",
"universalify": "0.1.1"
}
},
"fs.realpath": {
@ -367,8 +369,9 @@
"integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg="
},
"graphlib": {
"version": "https://registry.npmjs.org/graphlib/-/graphlib-2.1.1.tgz",
"integrity": "sha1-QjUsUrovTQNctWbrkfc5X3bryVE=",
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/graphlib/-/graphlib-2.1.5.tgz",
"integrity": "sha512-XvtbqCcw+EM5SqQrIetIKKD+uZVNQtDPD1goIg7K73RuRZtVI5rYMdcCVSHm/AS1sCBZ7vt0p5WgXouucHQaOA==",
"dev": true,
"requires": {
"lodash": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz"
@ -442,7 +445,8 @@
}
},
"is-module": {
"version": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",
"integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=",
"dev": true
},
@ -478,8 +482,19 @@
"integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
"dev": true
},
"js-yaml": {
"version": "3.10.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.10.0.tgz",
"integrity": "sha512-O2v52ffjLa9VeM43J4XocZE//WT9N0IiwDa3KSHH7Tu8CtH+1qM8SIZvnsTh6v+4yFy5KUY3BHUVwjpfAWsjIA==",
"dev": true,
"requires": {
"argparse": "1.0.9",
"esprima": "4.0.0"
}
},
"jsonfile": {
"version": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
"integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
"requires": {
"graceful-fs": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz"
@ -503,7 +518,15 @@
"integrity": "sha1-MQObTkA2Y5VhjB1s+Bk8U5F0df8=",
"dev": true,
"requires": {
"vlq": "https://registry.npmjs.org/vlq/-/vlq-0.2.2.tgz"
"vlq": "0.2.3"
},
"dependencies": {
"vlq": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/vlq/-/vlq-0.2.3.tgz",
"integrity": "sha512-DRibZL6DsNhIgYQ+wNdWDL2SL3bKPlVrRiBqV5yuMm++op8W4kGFtaQfCs4KEJn0wBZcHVHJ3eoywX8983k1ow==",
"dev": true
}
}
},
"micromatch": {
@ -689,40 +712,40 @@
}
},
"rollup": {
"version": "0.52.2",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-0.52.2.tgz",
"integrity": "sha512-1lSh5NghZu0H4QpA9wr4C1Y9lmgYK+p9MtVpriE6zpf5x3IXPbafc3k4Jfaw6upIT8eaVJLjDe4lcy7ByIYcOg==",
"version": "0.55.3",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-0.55.3.tgz",
"integrity": "sha512-2TgimJ7pk+XfPT0DmAcOqq9qdXlJ04qKyzyLm1WvPS/E6XdXEXyG5u6L8AsjxOaKoEBlYGliPzo99jxwhn2NYQ==",
"dev": true
},
"rollup-plugin-commonjs": {
"version": "8.2.6",
"resolved": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-8.2.6.tgz",
"integrity": "sha512-qK0+uhktmnAgZkHkqFuajNmPw93fjrO7+CysDaxWE5jrUR9XSlSvuao5ZJP+XizxA8weakhgYYBtbVz9SGBpjA==",
"version": "8.3.0",
"resolved": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-8.3.0.tgz",
"integrity": "sha512-PYs3OiYgENFYEmI3vOEm5nrp3eY90YZqd5vGmQqeXmhJsAWFIrFdROCvOasqJ1HgeTvqyYo9IGXnFDyoboNcgQ==",
"dev": true,
"requires": {
"acorn": "5.2.1",
"estree-walker": "0.5.0",
"acorn": "5.4.0",
"estree-walker": "0.5.1",
"magic-string": "0.22.4",
"resolve": "1.5.0",
"rollup-pluginutils": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.0.1.tgz"
},
"dependencies": {
"estree-walker": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.5.0.tgz",
"integrity": "sha1-quO1fELeuAEONJyJJGLw5xxd0ao=",
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.5.1.tgz",
"integrity": "sha512-7HgCgz1axW7w5aOvgOQkoR1RMBkllygJrssU3BvymKQ95lxXYv6Pon17fBRDm9qhkvXZGijOULoSF9ShOk/ZLg==",
"dev": true
}
}
},
"rollup-plugin-node-resolve": {
"version": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.0.0.tgz",
"integrity": "sha1-i4l8TDAw1QASd7BRSyXSygloPuA=",
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.0.2.tgz",
"integrity": "sha512-ZwmMip/yqw6cmDQJuCQJ1G7gw2z11iGUtQNFYrFZHmqadRHU+OZGC3nOXwXu+UTvcm5lzDspB1EYWrkTgPWybw==",
"dev": true,
"requires": {
"browser-resolve": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.2.tgz",
"builtin-modules": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz",
"is-module": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",
"builtin-modules": "1.1.1",
"is-module": "1.0.0",
"resolve": "1.5.0"
}
},
@ -746,13 +769,26 @@
}
},
"rollup-plugin-typescript2": {
"version": "github:ezolenko/rollup-plugin-typescript2#7910dcad976386347bc5df4db2a37fefd6bcf9d7",
"version": "github:ezolenko/rollup-plugin-typescript2#b3e32e51a9f53605224fbd76c573b3e7470a21bc",
"dev": true,
"requires": {
"fs-extra": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.2.tgz",
"fs-extra": "4.0.3",
"resolve": "1.5.0",
"rollup-pluginutils": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.0.1.tgz",
"tslib": "https://registry.npmjs.org/tslib/-/tslib-1.8.0.tgz"
"tslib": "1.9.0"
},
"dependencies": {
"fs-extra": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.3.tgz",
"integrity": "sha512-q6rbdDd1o2mAnQreO7YADIxf/Whx4AHBiRf6d+/cVT8h44ss+lHgxf1FemcqDnQt9X3ct4McHr+JMGlYSsK7Cg==",
"dev": true,
"requires": {
"graceful-fs": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
"jsonfile": "4.0.0",
"universalify": "0.1.1"
}
}
}
},
"rollup-pluginutils": {
@ -779,9 +815,9 @@
"dev": true
},
"semver": {
"version": "5.4.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz",
"integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==",
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz",
"integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==",
"dev": true
},
"set-immediate-shim": {
@ -789,6 +825,12 @@
"integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=",
"dev": true
},
"sprintf-js": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
"dev": true
},
"string_decoder": {
"version": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz",
"integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=",
@ -813,53 +855,56 @@
"dev": true
},
"tslib": {
"version": "https://registry.npmjs.org/tslib/-/tslib-1.8.0.tgz",
"integrity": "sha1-3GBOutZLy/aW1hPabJVKoOfqHrY="
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz",
"integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ=="
},
"tslint": {
"version": "5.8.0",
"resolved": "https://registry.npmjs.org/tslint/-/tslint-5.8.0.tgz",
"integrity": "sha1-H0mtWy53x2w69N3K5VKuTjYS6xM=",
"version": "5.9.1",
"resolved": "https://registry.npmjs.org/tslint/-/tslint-5.9.1.tgz",
"integrity": "sha1-ElX4ej/1frCw4fDmEKi0dIBGya4=",
"dev": true,
"requires": {
"babel-code-frame": "6.26.0",
"builtin-modules": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz",
"builtin-modules": "1.1.1",
"chalk": "2.3.0",
"commander": "2.12.2",
"commander": "2.13.0",
"diff": "3.4.0",
"glob": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
"js-yaml": "3.10.0",
"minimatch": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
"resolve": "1.5.0",
"semver": "5.4.1",
"tslib": "https://registry.npmjs.org/tslib/-/tslib-1.8.0.tgz",
"tsutils": "2.16.0"
"semver": "5.5.0",
"tslib": "1.9.0",
"tsutils": "2.20.0"
}
},
"tsutils": {
"version": "2.16.0",
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.16.0.tgz",
"integrity": "sha512-9Ier/60O7OZRNPiw+or5QAtAY4kQA+WDiO/r6xOYATEyefH9bdfvTRLCxrYnFhQlZfET2vYXKfpr3Vw2BiArZw==",
"version": "2.20.0",
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.20.0.tgz",
"integrity": "sha512-qPOBy1/hwLdBxh/TNIpim5qL1WRMR0tgVGBB6shjnpw6/SuS5ZKYyXXxKDYsMsMtVdFOcL+XPGZVEuc+eCOo4A==",
"dev": true,
"requires": {
"tslib": "1.8.1"
"tslib": "1.9.0"
},
"dependencies": {
"tslib": {
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.8.1.tgz",
"integrity": "sha1-aUavLR1lGnsYY7Ux1uWvpBqkTqw=",
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz",
"integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==",
"dev": true
}
}
},
"typescript": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz",
"integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=",
"version": "2.7.1",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-2.7.1.tgz",
"integrity": "sha512-bqB1yS6o9TNA9ZC/MJxM0FZzPnZdtHj0xWK/IZ5khzVqdpGul/R/EIiHRgFXlwTD7PSIaYVnGKq1QgMCu2mnqw==",
"dev": true
},
"universalify": {
"version": "https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz",
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz",
"integrity": "sha1-+nG63UQ3r0wUiEHjs7Fl+enlkLc="
},
"util-deprecate": {

View File

@ -30,8 +30,8 @@
"lint": "tslint -c ./tslint.json src/*.ts ./*.js"
},
"dependencies": {
"fs-extra": "^4.0.2",
"tslib": "^1.8.0",
"fs-extra": "^5.0.0",
"tslib": "^1.9.0",
"resolve": "^1.5.0",
"rollup-pluginutils": "^2.0.1"
},
@ -40,26 +40,26 @@
"typescript": ">=2.4.0"
},
"devDependencies": {
"typescript": "2.6.2",
"typescript": "2.7.1",
"object-hash": "^1.2.0",
"colors": "^1.1.2",
"graphlib": "^2.1.1",
"graphlib": "^2.1.5",
"lodash": "^4.17.4",
"@types/colors": "^1.1.3",
"@types/fs-extra": "^4.0.3",
"@types/fs-extra": "^5.0.0",
"@types/graphlib": "^2.1.4",
"@types/lodash": "^4.14.80",
"@types/lodash": "^4.14.100",
"@types/node": "^8.0.47",
"@types/object-hash": "^1.1.0",
"@types/resolve": "^0.0.4",
"rimraf": "^2.6.2",
"rollup": "^0.52.2",
"rollup": "^0.55.3",
"rollup-plugin-typescript2": "github:ezolenko/rollup-plugin-typescript2#master",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-commonjs": "^8.2.6",
"rollup-plugin-node-resolve": "^3.0.2",
"rollup-plugin-commonjs": "^8.3.0",
"rollup-plugin-re": "^1.0.6",
"rollup-watch": "^4.3.1",
"tslint": "^5.8.0"
"tslint": "^5.9.1"
},
"repository": {
"type": "git",

View File

@ -20,8 +20,6 @@ export default {
"os",
],
sourcemap: true,
plugins: [
replace
({
@ -33,7 +31,6 @@ export default {
include: "node_modules/**",
namedExports:
{
"graphlib": [ "alg", "Graph" ],
"colors/safe": [ "green", "white", "red", "yellow", "blue" ],
"lodash": [ "get", "each", "isEqual", "some", "filter", "endsWith", "map", "has", "isFunction", "concat", "find", "defaults", "assign", "merge", "flatMap", "chain" ],
// "fs-extra": [ "renameSync", "removeSync", "ensureFileSync", "writeJsonSync", "readJsonSync", "existsSync", "readdirSync", "emptyDirSync" ],
@ -41,20 +38,24 @@ export default {
}),
],
banner: "/* eslint-disable */",
output: [
{
format: "cjs",
file: pkg.main,
sourcemap: true,
banner: "/* eslint-disable */",
},
{
format: "es",
file: pkg.module,
sourcemap: true,
banner: "/* eslint-disable */",
},
{
format: "es",
file: "build-self/" + pkg.module,
sourcemap: true,
banner: "/* eslint-disable */",
},
],
};

View File

@ -68,10 +68,10 @@ export class TsCache
private ambientTypes: ITypeSnapshot[];
private ambientTypesDirty = false;
private cacheDir: string;
private codeCache: ICache<ICode | undefined>;
private typesCache: ICache<string>;
private semanticDiagnosticsCache: ICache<IDiagnostics[]>;
private syntacticDiagnosticsCache: ICache<IDiagnostics[]>;
private codeCache!: ICache<ICode | undefined>;
private typesCache!: ICache<string>;
private semanticDiagnosticsCache!: ICache<IDiagnostics[]>;
private syntacticDiagnosticsCache!: ICache<IDiagnostics[]>;
constructor(private host: tsTypes.LanguageServiceHost, cache: string, private options: tsTypes.CompilerOptions, private rollupConfig: any, rootFilenames: string[], private context: IContext)
{

View File

@ -16,6 +16,7 @@
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"declaration": true,
"strict": true,
"outDir": "./build"
},
"include": [