@proteinjs/reflection-build 1.5.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/dist/modules/typescript-parser/declarations/ClassDeclaration.d.ts +1 -0
- package/dist/modules/typescript-parser/declarations/ClassDeclaration.js +1 -0
- package/dist/modules/typescript-parser/node-parser/class-parser.js +6 -0
- package/dist/src/BuildContract.d.ts +69 -0
- package/dist/src/BuildContract.js +393 -0
- package/dist/src/BuildContract.js.map +1 -0
- package/dist/src/ReflectionDoctor.d.ts +95 -0
- package/dist/src/ReflectionDoctor.js +588 -0
- package/dist/src/ReflectionDoctor.js.map +1 -0
- package/dist/src/build.d.ts +5 -1
- package/dist/src/build.js +13 -77
- package/dist/src/build.js.map +1 -1
- package/dist/src/codegen/writeGeneratedIndex.d.ts +18 -0
- package/dist/src/codegen/writeGeneratedIndex.js +58 -15
- package/dist/src/codegen/writeGeneratedIndex.js.map +1 -1
- package/dist/src/parser/createGraphBuilder.js +30 -5
- package/dist/src/parser/createGraphBuilder.js.map +1 -1
- package/dist/src/parser/types/createClassDeclaration.js +1 -4
- package/dist/src/parser/types/createClassDeclaration.js.map +1 -1
- package/dist/src/runBuild.js +12 -2
- package/dist/src/runBuild.js.map +1 -1
- package/dist/src/runDoctor.d.ts +2 -0
- package/dist/src/runDoctor.js +83 -0
- package/dist/src/runDoctor.js.map +1 -0
- package/dist/test/AbstractClassDeclaration.test.d.ts +1 -0
- package/dist/test/AbstractClassDeclaration.test.js +121 -0
- package/dist/test/AbstractClassDeclaration.test.js.map +1 -0
- package/dist/test/GraphEmitRelativePaths.test.d.ts +1 -0
- package/dist/test/GraphEmitRelativePaths.test.js +162 -0
- package/dist/test/GraphEmitRelativePaths.test.js.map +1 -0
- package/dist/test/ReflectionDoctor.test.d.ts +1 -0
- package/dist/test/ReflectionDoctor.test.js +316 -0
- package/dist/test/ReflectionDoctor.test.js.map +1 -0
- package/dist/test/TestSubpathContract.test.d.ts +1 -0
- package/dist/test/TestSubpathContract.test.js +260 -0
- package/dist/test/TestSubpathContract.test.js.map +1 -0
- package/dist/test/ValidateDontMutate.test.d.ts +1 -0
- package/dist/test/ValidateDontMutate.test.js +238 -0
- package/dist/test/ValidateDontMutate.test.js.map +1 -0
- package/dist/test/examples/source-repository/a/generated/index.js +1 -1
- package/dist/test/examples/source-repository/a/generated/index.js.map +1 -1
- package/dist/test/examples/source-repository/b/generated/index.js +1 -1
- package/dist/test/examples/source-repository/b/generated/index.js.map +1 -1
- package/modules/typescript-parser/declarations/ClassDeclaration.d.ts +1 -0
- package/modules/typescript-parser/declarations/ClassDeclaration.js +1 -0
- package/modules/typescript-parser/node-parser/class-parser.js +6 -0
- package/package.json +6 -5
- package/src/BuildContract.ts +384 -0
- package/src/ReflectionDoctor.ts +589 -0
- package/src/build.ts +19 -56
- package/src/codegen/writeGeneratedIndex.ts +51 -13
- package/src/parser/createGraphBuilder.ts +9 -4
- package/src/parser/types/createClassDeclaration.ts +5 -5
- package/src/runBuild.ts +7 -1
- package/src/runDoctor.ts +34 -0
- package/test/AbstractClassDeclaration.test.ts +97 -0
- package/test/GraphEmitRelativePaths.test.ts +95 -0
- package/test/ReflectionDoctor.test.ts +193 -0
- package/test/TestSubpathContract.test.ts +148 -0
- package/test/ValidateDontMutate.test.ts +126 -0
- package/test/examples/source-repository/a/dist/BuildContract.d.ts +69 -0
- package/test/examples/source-repository/a/dist/BuildContract.js +393 -0
- package/test/examples/source-repository/a/dist/BuildContract.js.map +1 -0
- package/test/examples/source-repository/a/dist/build.d.ts +5 -1
- package/test/examples/source-repository/a/dist/build.js +13 -77
- package/test/examples/source-repository/a/dist/build.js.map +1 -1
- package/test/examples/source-repository/a/dist/codegen/writeGeneratedIndex.d.ts +18 -0
- package/test/examples/source-repository/a/dist/codegen/writeGeneratedIndex.js +58 -15
- package/test/examples/source-repository/a/dist/codegen/writeGeneratedIndex.js.map +1 -1
- package/test/examples/source-repository/a/dist/generated/index.js +1 -1
- package/test/examples/source-repository/a/dist/generated/index.js.map +1 -1
- package/test/examples/source-repository/a/dist/parser/createGraphBuilder.js +30 -5
- package/test/examples/source-repository/a/dist/parser/createGraphBuilder.js.map +1 -1
- package/test/examples/source-repository/a/dist/parser/types/createClassDeclaration.js +1 -4
- package/test/examples/source-repository/a/dist/parser/types/createClassDeclaration.js.map +1 -1
- package/test/examples/source-repository/a/dist/runBuild.js +12 -2
- package/test/examples/source-repository/a/dist/runBuild.js.map +1 -1
- package/test/examples/source-repository/a/generated/index.ts +1 -1
- package/test/examples/source-repository/b/dist/BuildContract.d.ts +69 -0
- package/test/examples/source-repository/b/dist/BuildContract.js +393 -0
- package/test/examples/source-repository/b/dist/BuildContract.js.map +1 -0
- package/test/examples/source-repository/b/dist/build.d.ts +5 -1
- package/test/examples/source-repository/b/dist/build.js +13 -77
- package/test/examples/source-repository/b/dist/build.js.map +1 -1
- package/test/examples/source-repository/b/dist/codegen/writeGeneratedIndex.d.ts +18 -0
- package/test/examples/source-repository/b/dist/codegen/writeGeneratedIndex.js +58 -15
- package/test/examples/source-repository/b/dist/codegen/writeGeneratedIndex.js.map +1 -1
- package/test/examples/source-repository/b/dist/generated/index.js +1 -1
- package/test/examples/source-repository/b/dist/generated/index.js.map +1 -1
- package/test/examples/source-repository/b/dist/parser/createGraphBuilder.js +30 -5
- package/test/examples/source-repository/b/dist/parser/createGraphBuilder.js.map +1 -1
- package/test/examples/source-repository/b/dist/parser/types/createClassDeclaration.js +1 -4
- package/test/examples/source-repository/b/dist/parser/types/createClassDeclaration.js.map +1 -1
- package/test/examples/source-repository/b/dist/runBuild.js +12 -2
- package/test/examples/source-repository/b/dist/runBuild.js.map +1 -1
- package/test/examples/source-repository/b/generated/index.ts +1 -1
|
@@ -62,7 +62,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
62
62
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
63
63
|
};
|
|
64
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
|
-
exports.dependencyHasSourceGraph = exports.writeGeneratedIndex = void 0;
|
|
65
|
+
exports.createEmittedSourceGraph = exports.findDependencyDir = exports.findDependencySourceGraph = exports.dependencyHasSourceGraph = exports.writeGeneratedIndex = void 0;
|
|
66
66
|
var fs = __importStar(require("fs"));
|
|
67
67
|
var path = __importStar(require("path"));
|
|
68
68
|
var util_node_1 = require("@proteinjs/util-node");
|
|
@@ -143,11 +143,11 @@ function sourceRepositoryLoader(packageDir, generatedIndexPath, sourceRootsRel)
|
|
|
143
143
|
packageJson = _a.sent();
|
|
144
144
|
code = loadDependencySourceGraphs(packageDir, packageJson);
|
|
145
145
|
roots = Array.isArray(sourceRootsRel) ? sourceRootsRel : [sourceRootsRel];
|
|
146
|
-
return [4 /*yield*/, (
|
|
146
|
+
return [4 /*yield*/, createEmittedSourceGraph(packageDir, roots)];
|
|
147
147
|
case 2:
|
|
148
148
|
sourceGraph = _a.sent();
|
|
149
|
-
code += generateSourceGraph(sourceGraph
|
|
150
|
-
code += generateSourceLinks(sourceGraph, packageJson, generatedIndexPath);
|
|
149
|
+
code += generateSourceGraph(sourceGraph);
|
|
150
|
+
code += generateSourceLinks(sourceGraph, packageJson, packageDir, generatedIndexPath);
|
|
151
151
|
code += mergeSourceGraph();
|
|
152
152
|
return [2 /*return*/, code];
|
|
153
153
|
}
|
|
@@ -210,24 +210,43 @@ function loadDependencySourceGraphs(packageDir, packageJson) {
|
|
|
210
210
|
* and correct for workspace symlinks (the symlinked package root carries its own dist).
|
|
211
211
|
*/
|
|
212
212
|
function dependencyHasSourceGraph(packageDir, packageName) {
|
|
213
|
+
return !!findDependencySourceGraph(packageDir, packageName);
|
|
214
|
+
}
|
|
215
|
+
exports.dependencyHasSourceGraph = dependencyHasSourceGraph;
|
|
216
|
+
/**
|
|
217
|
+
* Full path to the dependency's source-graph artifact, or undefined when the dependency is
|
|
218
|
+
* not installed or not reflection-built. Same walk as `dependencyHasSourceGraph`; exposed for
|
|
219
|
+
* static graph harvesting (reflection-doctor).
|
|
220
|
+
*/
|
|
221
|
+
function findDependencySourceGraph(packageDir, packageName) {
|
|
222
|
+
var dependencyDir = findDependencyDir(packageDir, packageName);
|
|
223
|
+
if (!dependencyDir) {
|
|
224
|
+
return undefined;
|
|
225
|
+
}
|
|
226
|
+
var artifactPath = path.join(dependencyDir, 'dist', 'generated', 'index.js');
|
|
227
|
+
return fs.existsSync(artifactPath) ? artifactPath : undefined;
|
|
228
|
+
}
|
|
229
|
+
exports.findDependencySourceGraph = findDependencySourceGraph;
|
|
230
|
+
/**
|
|
231
|
+
* The installed location of a dependency, resolved by walking `node_modules` up from the
|
|
232
|
+
* consuming package — npm-layout resolution: the nearest installed copy shadows hoisted ones.
|
|
233
|
+
*/
|
|
234
|
+
function findDependencyDir(packageDir, packageName) {
|
|
213
235
|
var currentDir = packageDir;
|
|
214
|
-
// Upward fs walk; exits are internal (found /
|
|
236
|
+
// Upward fs walk; exits are internal (found / fs root).
|
|
215
237
|
for (;;) {
|
|
216
238
|
var candidate = path.join(currentDir, 'node_modules', packageName);
|
|
217
|
-
if (fs.existsSync(path.join(candidate, 'dist', 'generated', 'index.js'))) {
|
|
218
|
-
return true;
|
|
219
|
-
}
|
|
220
239
|
if (fs.existsSync(candidate)) {
|
|
221
|
-
return
|
|
240
|
+
return candidate;
|
|
222
241
|
}
|
|
223
242
|
var parent_1 = path.dirname(currentDir);
|
|
224
243
|
if (parent_1 === currentDir) {
|
|
225
|
-
return
|
|
244
|
+
return undefined;
|
|
226
245
|
}
|
|
227
246
|
currentDir = parent_1;
|
|
228
247
|
}
|
|
229
248
|
}
|
|
230
|
-
exports.
|
|
249
|
+
exports.findDependencyDir = findDependencyDir;
|
|
231
250
|
/**
|
|
232
251
|
* Determine an import specifier for a dependency that respects its package.json exports or main/module fields.
|
|
233
252
|
*/
|
|
@@ -283,8 +302,30 @@ function getDependencyImportSpecifier(packageDir, packageName) {
|
|
|
283
302
|
return "".concat(packageName, "/").concat(entryPoint);
|
|
284
303
|
}
|
|
285
304
|
}
|
|
286
|
-
|
|
287
|
-
|
|
305
|
+
/**
|
|
306
|
+
* The graph exactly as a build emits it: parsed from the package's source roots, with
|
|
307
|
+
* build-time-non-loadable declarations pruned. Owned here so build emit and diagnostic
|
|
308
|
+
* tooling (reflection-doctor drift checks) share one pipeline.
|
|
309
|
+
*/
|
|
310
|
+
function createEmittedSourceGraph(packageDir, sourceRootsRel) {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
312
|
+
var packageJson, sourceGraph;
|
|
313
|
+
return __generator(this, function (_a) {
|
|
314
|
+
switch (_a.label) {
|
|
315
|
+
case 0: return [4 /*yield*/, getPackageJson(packageDir)];
|
|
316
|
+
case 1:
|
|
317
|
+
packageJson = _a.sent();
|
|
318
|
+
return [4 /*yield*/, (0, createSourceGraph_1.createSourceGraph)(packageDir, [], sourceRootsRel)];
|
|
319
|
+
case 2:
|
|
320
|
+
sourceGraph = _a.sent();
|
|
321
|
+
removeNonLoadables(sourceGraph, packageJson.name);
|
|
322
|
+
return [2 /*return*/, sourceGraph];
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
exports.createEmittedSourceGraph = createEmittedSourceGraph;
|
|
328
|
+
function generateSourceGraph(sourceGraph) {
|
|
288
329
|
var code = "\n\n/** Generate Source Graph */\n\n";
|
|
289
330
|
var serializedSourceGraph = util_1.graphSerializer.serialize(sourceGraph);
|
|
290
331
|
var doubleEscapedSerializedSourceGraph = (0, jsesc_1.default)(serializedSourceGraph, { json: true }); // since we write to file, need to escape a second time
|
|
@@ -349,7 +390,7 @@ function removeNonLoadableNode(packageScope, buildTargetPackageName, sourceGraph
|
|
|
349
390
|
}
|
|
350
391
|
return shouldRemove;
|
|
351
392
|
}
|
|
352
|
-
function generateSourceLinks(sourceGraph, packageJson, generatedIndexPath) {
|
|
393
|
+
function generateSourceLinks(sourceGraph, packageJson, packageDir, generatedIndexPath) {
|
|
353
394
|
var code = "\n\n/** Generate Source Links */\n\n";
|
|
354
395
|
var linkableNodes = [];
|
|
355
396
|
for (var _i = 0, _a = sourceGraph.nodes(); _i < _a.length; _i++) {
|
|
@@ -367,7 +408,9 @@ function generateSourceLinks(sourceGraph, packageJson, generatedIndexPath) {
|
|
|
367
408
|
if (!node.filePath) {
|
|
368
409
|
continue;
|
|
369
410
|
}
|
|
370
|
-
|
|
411
|
+
// node.filePath is package-relative (never serialized absolute); resolve against the
|
|
412
|
+
// package dir to compute the real import location for the generated index.
|
|
413
|
+
var relativeImportPath = path.relative(path.dirname(generatedIndexPath), path.join(packageDir, node.filePath));
|
|
371
414
|
code += "import { ".concat(node.name, " } from '").concat(relativeImportPath.replace(/\.[^/.]+$/, ''), "';\n");
|
|
372
415
|
linkableNodes.push(node);
|
|
373
416
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeGeneratedIndex.js","sourceRoot":"","sources":["../../../../../../src/codegen/writeGeneratedIndex.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyB;AACzB,yCAA6B;AAC7B,kDAAqD;AACrD,wCAAgE;AAEhE,gDAA0B;AAC1B,iEAAgE;AAChE,oDAAqH;AAErH;;;;;;;;GAQG;AACH,SAAsB,mBAAmB,CACvC,UAAkB,EAClB,mBAA2B,EAC3B,kBAA0B,EAC1B,cAAyC,EACzC,sBAA+B;IAD/B,+BAAA,EAAA,sBAAyC;;;;;;oBAKrC,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;oBACnD,qBAAM,yBAAa,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAA;;yBAA9C,CAAC,CAAC,SAA4C,CAAC,EAA/C,wBAA+C;oBACjD,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,C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I,IAAI,aAAM,IAAI,CAAC,aAAa,gBAAM,IAAI,CAAC,IAAI,QAAK,CAAC;KACtD;IACD,IAAI,IAAI,MAAM,CAAC;IAEf,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,gBAAgB;IACvB,IAAI,IAAI,GAAG,4CAA4C,CAAC;IACxD,IAAI,IAAI,6DAA6D,CAAC;IACtE,IAAI,IAAI,mDAAmD,CAAC;IAC5D,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
/** Generate Source Graph */
|
|
19
|
-
var sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignType\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"typeParameters\":[],\"directParents\":null},{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"{ z: number }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/{ z: number }\",\"typeParameters\":[],\"directParents\":null}],\"sourceType\":1}},{\"v\":\"@proteinjs/reflection/Loadable\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"typeParameters\":[],\"directParents\":null},{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"{ z: number }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/{ z: number }\",\"typeParameters\":[],\"directParents\":null}],\"sourceType\":1}},{\"v\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"implementsOptionalLoadableForeignType\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"type\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignInterface\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignInterface\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"ImplementsOptionalLoadableForeignInterface\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignInterface\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignAbstractClass\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignAbstractClass\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"ImplementsOptionalLoadableForeignAbstractClass\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[],\"directParentClasses\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignAbstractClass\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[],\"directParentClasses\":[]}],\"sourceType\":2}}],\"edges\":[{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends type\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends type\"},{\"v\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"value\":\"has type\"},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"value\":\"extends class\"}]}";
|
|
19
|
+
var sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignType\",\"filePath\":\"src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"typeParameters\":[],\"directParents\":null},{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"{ z: number }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/{ z: number }\",\"typeParameters\":[],\"directParents\":null}],\"sourceType\":1}},{\"v\":\"@proteinjs/reflection/Loadable\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":\"src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"typeParameters\":[],\"directParents\":null},{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"{ z: number }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/{ z: number }\",\"typeParameters\":[],\"directParents\":null}],\"sourceType\":1}},{\"v\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"implementsOptionalLoadableForeignType\",\"filePath\":\"src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"type\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignInterface\",\"filePath\":\"src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignInterface\",\"filePath\":\"src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"ImplementsOptionalLoadableForeignInterface\",\"filePath\":\"src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignInterface\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignAbstractClass\",\"filePath\":\"src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"isAbstract\":true,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignAbstractClass\",\"filePath\":\"src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"isAbstract\":true,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"ImplementsOptionalLoadableForeignAbstractClass\",\"filePath\":\"src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[],\"directParentClasses\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignAbstractClass\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[],\"directParentClasses\":[]}],\"sourceType\":2}}],\"edges\":[{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends type\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends type\"},{\"v\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"value\":\"has type\"},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"value\":\"extends class\"}]}";
|
|
20
20
|
/** Generate Source Links */
|
|
21
21
|
var LoadableForeignType_1 = require("../src/LoadableForeignType");
|
|
22
22
|
var LoadableForeignType_2 = require("../src/LoadableForeignType");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;;;;;AAIpC,4BAA4B;AAE5B,IAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;;;;;AAIpC,4BAA4B;AAE5B,IAAM,WAAW,GAAG,wiTAAwiT,CAAC;AAG7jT,4BAA4B;AAE5B,kEAAmF;AACnF,kEAAwF;AACxF,kEAA0E;AAC1E,kEAAkF;AAClF,kEAA4F;AAE5F,IAAM,WAAW,GAAG;IACnB,0EAA0E,EAAE,2DAAqC;IACjH,+EAA+E,EAAE,gEAA0C;IAC3H,iEAAiE,EAAE,kDAA4B;IAC/F,yEAAyE,EAAE,0DAAoC;IAC/G,mFAAmF,EAAE,oEAA8C;CACnI,CAAC;AAGF,kCAAkC;AAElC,oDAAyD;AACzD,6BAAgB,CAAC,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAGjD,2CAAyB"}
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -37,6 +60,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
60
|
};
|
|
38
61
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
62
|
exports.createGraphBuilder = void 0;
|
|
63
|
+
var path = __importStar(require("path"));
|
|
40
64
|
var typescript_parser_1 = require("../../modules/typescript-parser");
|
|
41
65
|
var reflection_1 = require("@proteinjs/reflection");
|
|
42
66
|
var util_1 = require("@proteinjs/util");
|
|
@@ -49,10 +73,11 @@ function createGraphBuilder(graph, packageJson, packageJsonDir) {
|
|
|
49
73
|
var _this = this;
|
|
50
74
|
var packageName = packageJson.name;
|
|
51
75
|
return function (parsedFile) { return __awaiter(_this, void 0, void 0, function () {
|
|
52
|
-
var _i, _a, declaration, packageNameFinder, variableDeclaration, typeAliasDeclaration, classDeclaration, _b, _c, parentInterface, _d, _e, parentClass, interfaceDeclaration, _f, _g, parentInterface;
|
|
76
|
+
var filePath, _i, _a, declaration, packageNameFinder, variableDeclaration, typeAliasDeclaration, classDeclaration, _b, _c, parentInterface, _d, _e, parentClass, interfaceDeclaration, _f, _g, parentInterface;
|
|
53
77
|
return __generator(this, function (_h) {
|
|
54
78
|
switch (_h.label) {
|
|
55
79
|
case 0:
|
|
80
|
+
filePath = path.relative(packageJsonDir, parsedFile.filePath);
|
|
56
81
|
_i = 0, _a = parsedFile.declarations;
|
|
57
82
|
_h.label = 1;
|
|
58
83
|
case 1:
|
|
@@ -66,7 +91,7 @@ function createGraphBuilder(graph, packageJson, packageJsonDir) {
|
|
|
66
91
|
}
|
|
67
92
|
packageNameFinder = new PackageNameFinder_1.PackageNameFinder(parsedFile, packageJsonDir, packageName);
|
|
68
93
|
if (!(0, util_1.isInstanceOf)(declaration, typescript_parser_1.VariableDeclaration)) return [3 /*break*/, 3];
|
|
69
|
-
return [4 /*yield*/, (0, createVariableDeclaration_1.createVariableDeclaration)(declaration, packageNameFinder,
|
|
94
|
+
return [4 /*yield*/, (0, createVariableDeclaration_1.createVariableDeclaration)(declaration, packageNameFinder, filePath)];
|
|
70
95
|
case 2:
|
|
71
96
|
variableDeclaration = _h.sent();
|
|
72
97
|
graph.setNode(variableDeclaration.qualifiedName, Object.assign(variableDeclaration, { sourceType: reflection_1.SourceType.variable }));
|
|
@@ -74,7 +99,7 @@ function createGraphBuilder(graph, packageJson, packageJsonDir) {
|
|
|
74
99
|
return [3 /*break*/, 9];
|
|
75
100
|
case 3:
|
|
76
101
|
if (!(0, util_1.isInstanceOf)(declaration, typescript_parser_1.TypeAliasDeclaration)) return [3 /*break*/, 5];
|
|
77
|
-
return [4 /*yield*/, (0, createTypeAliasDeclaration_1.createTypeAliasDeclaration)(declaration, packageNameFinder,
|
|
102
|
+
return [4 /*yield*/, (0, createTypeAliasDeclaration_1.createTypeAliasDeclaration)(declaration, packageNameFinder, filePath)];
|
|
78
103
|
case 4:
|
|
79
104
|
typeAliasDeclaration = _h.sent();
|
|
80
105
|
graph.setNode(typeAliasDeclaration.qualifiedName, Object.assign(typeAliasDeclaration, { sourceType: reflection_1.SourceType.typeAlias }));
|
|
@@ -82,7 +107,7 @@ function createGraphBuilder(graph, packageJson, packageJsonDir) {
|
|
|
82
107
|
return [3 /*break*/, 9];
|
|
83
108
|
case 5:
|
|
84
109
|
if (!(0, util_1.isInstanceOf)(declaration, typescript_parser_1.ClassDeclaration)) return [3 /*break*/, 7];
|
|
85
|
-
return [4 /*yield*/, (0, createClassDeclaration_1.createClassDeclaration)(declaration, packageNameFinder,
|
|
110
|
+
return [4 /*yield*/, (0, createClassDeclaration_1.createClassDeclaration)(declaration, packageNameFinder, filePath)];
|
|
86
111
|
case 6:
|
|
87
112
|
classDeclaration = _h.sent();
|
|
88
113
|
graph.setNode(classDeclaration.qualifiedName, Object.assign(classDeclaration, { sourceType: reflection_1.SourceType.class }));
|
|
@@ -109,7 +134,7 @@ function createGraphBuilder(graph, packageJson, packageJsonDir) {
|
|
|
109
134
|
return [3 /*break*/, 9];
|
|
110
135
|
case 7:
|
|
111
136
|
if (!(0, util_1.isInstanceOf)(declaration, typescript_parser_1.InterfaceDeclaration)) return [3 /*break*/, 9];
|
|
112
|
-
return [4 /*yield*/, (0, createInterfaceDeclaration_1.createInterfaceDeclaration)(declaration, packageNameFinder,
|
|
137
|
+
return [4 /*yield*/, (0, createInterfaceDeclaration_1.createInterfaceDeclaration)(declaration, packageNameFinder, filePath)];
|
|
113
138
|
case 8:
|
|
114
139
|
interfaceDeclaration = _h.sent();
|
|
115
140
|
graph.setNode(interfaceDeclaration.qualifiedName, Object.assign(interfaceDeclaration, { sourceType: reflection_1.SourceType.interface }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createGraphBuilder.js","sourceRoot":"","sources":["../../../../../../src/parser/createGraphBuilder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createGraphBuilder.js","sourceRoot":"","sources":["../../../../../../src/parser/createGraphBuilder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA6B;AAE7B,qEAMyC;AACzC,oDAA6F;AAC7F,wCAA+C;AAC/C,+EAA8E;AAC9E,+DAA8D;AAC9D,iFAAgF;AAChF,yEAAwE;AACxE,iFAAgF;AAEhF,SAAgB,kBAAkB,CAAC,KAAqB,EAAE,WAAgB,EAAE,cAAsB;IAAlG,iBAkHC;IAjHC,IAAM,WAAW,GAAG,WAAW,CAAC,IAAI,CAAC;IACrC,OAAO,UAAO,UAAgB;;;;;oBAItB,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;0BACnB,EAAvB,KAAA,UAAU,CAAC,YAAY;;;yBAAvB,CAAA,cAAuB,CAAA;oBAAtC,WAAW;oBACpB,IAAI,CAAE,WAAmB,CAAC,YAAY,CAAC,EAAE;wBACvC,wBAAS;qBACV;oBAED,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE;wBACrB,wBAAS;qBACV;oBAEK,iBAAiB,GAAG,IAAI,qCAAiB,CAAC,UAAU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@@ -46,14 +46,11 @@ function createClassDeclaration(parserClassDeclaration, packageNameFinder, fileP
|
|
|
46
46
|
return __generator(this, function (_5) {
|
|
47
47
|
switch (_5.label) {
|
|
48
48
|
case 0:
|
|
49
|
-
isAbstract =
|
|
49
|
+
isAbstract = parserClassDeclaration.isAbstract;
|
|
50
50
|
isStatic = false;
|
|
51
51
|
visibility = 'public';
|
|
52
52
|
for (_i = 0, _a = parserClassDeclaration.accessors; _i < _a.length; _i++) {
|
|
53
53
|
accessor = _a[_i];
|
|
54
|
-
if (accessor.isAbstract) {
|
|
55
|
-
isAbstract = true;
|
|
56
|
-
}
|
|
57
54
|
if (accessor.isStatic) {
|
|
58
55
|
isStatic = true;
|
|
59
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createClassDeclaration.js","sourceRoot":"","sources":["../../../../../../../src/parser/types/createClassDeclaration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA6G;AAE7G,mDAAkD;AAClD,+CAA8C;AAE9C,SAAsB,sBAAsB,CAC1C,sBAA8C,EAC9C,iBAAoC,EACpC,QAAgB;;;;;;
|
|
1
|
+
{"version":3,"file":"createClassDeclaration.js","sourceRoot":"","sources":["../../../../../../../src/parser/types/createClassDeclaration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA6G;AAE7G,mDAAkD;AAClD,+CAA8C;AAE9C,SAAsB,sBAAsB,CAC1C,sBAA8C,EAC9C,iBAAoC,EACpC,QAAgB;;;;;;oBAMV,UAAU,GAAG,sBAAsB,CAAC,UAAU,CAAC;oBACjD,QAAQ,GAAG,KAAK,CAAC;oBACjB,UAAU,GAAe,QAAQ,CAAC;oBACtC,WAAuD,EAAhC,KAAA,sBAAsB,CAAC,SAAS,EAAhC,cAAgC,EAAhC,IAAgC,EAAE;wBAA9C,QAAQ;wBACjB,IAAI,QAAQ,CAAC,Q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;;oBAA5E,cAAoB,cAAG,SAAqD,eAAI,aAAa,CAAE,EAAC,CAAC;;;oBADvE,IAA0B,CAAA;;yBAIlC,qBAAM,iBAAiB,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,EAAA;;oBAAtE,WAAW,GAAG,SAAwD;oBAC5E,mBAAmB,CAAC,IAAI,CACtB,IAAI,6BAAgB,CAAC,WAAW,EAAE,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,gBAAc,EAAE,EAAE,EAAE,EAAE,CAAC,CAC5G,CAAC;;;oBATsB,IAA8B,CAAA;;yBAYxD,sBAAO,IAAI,6BAAgB,CACzB,iBAAiB,CAAC,kBAAkB,EACpC,sBAAsB,CAAC,IAAI,EAC3B,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,OAAO,EACP,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,QAAQ,CACT,EAAC;;;;CACH;AAjFD,wDAiFC"}
|
|
@@ -40,12 +40,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
40
40
|
var build_1 = require("./build");
|
|
41
41
|
(function () {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function () {
|
|
43
|
+
var error_1;
|
|
43
44
|
return __generator(this, function (_a) {
|
|
44
45
|
switch (_a.label) {
|
|
45
|
-
case 0:
|
|
46
|
+
case 0:
|
|
47
|
+
_a.trys.push([0, 2, , 3]);
|
|
48
|
+
return [4 /*yield*/, (0, build_1.build)({ fix: process.argv.includes('--fix') })];
|
|
46
49
|
case 1:
|
|
47
50
|
_a.sent();
|
|
48
|
-
return [
|
|
51
|
+
return [3 /*break*/, 3];
|
|
52
|
+
case 2:
|
|
53
|
+
error_1 = _a.sent();
|
|
54
|
+
// Contract conflicts are a diagnosis for humans — print the message, not a stack trace.
|
|
55
|
+
console.error(error_1 instanceof Error ? error_1.message : error_1);
|
|
56
|
+
process.exit(1);
|
|
57
|
+
return [3 /*break*/, 3];
|
|
58
|
+
case 3: return [2 /*return*/];
|
|
49
59
|
}
|
|
50
60
|
});
|
|
51
61
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runBuild.js","sourceRoot":"","sources":["../../../../../src/runBuild.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,iCAAgC;AAEhC,CAAC
|
|
1
|
+
{"version":3,"file":"runBuild.js","sourceRoot":"","sources":["../../../../../src/runBuild.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,iCAAgC;AAEhC,CAAC;;;;;;;oBAEG,qBAAM,IAAA,aAAK,EAAC,EAAE,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,EAAA;;oBAApD,SAAoD,CAAC;;;;oBAErD,wFAAwF;oBACxF,OAAO,CAAC,KAAK,CAAC,OAAK,YAAY,KAAK,CAAC,CAAC,CAAC,OAAK,CAAC,OAAO,CAAC,CAAC,CAAC,OAAK,CAAC,CAAC;oBAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;;;;;;CAEnB,CAAC,EAAE,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/** Generate Source Graph */
|
|
4
4
|
|
|
5
5
|
const sourceGraph =
|
|
6
|
-
'{"options":{"directed":true,"multigraph":false,"compound":false},"nodes":[{"v":"@proteinjs/reflection-build-test-b/LoadableForeignType","value":{"packageName":"@proteinjs/reflection-build-test-b","name":"LoadableForeignType","filePath":"
|
|
6
|
+
'{"options":{"directed":true,"multigraph":false,"compound":false},"nodes":[{"v":"@proteinjs/reflection-build-test-b/LoadableForeignType","value":{"packageName":"@proteinjs/reflection-build-test-b","name":"LoadableForeignType","filePath":"src/LoadableForeignType.ts","qualifiedName":"@proteinjs/reflection-build-test-b/LoadableForeignType","typeParameters":[],"directParents":[{"packageName":"@proteinjs/reflection","name":"Loadable","filePath":null,"qualifiedName":"@proteinjs/reflection/Loadable","typeParameters":[],"directParents":null},{"packageName":"@proteinjs/reflection-build-test-b","name":"{ z: number }","filePath":null,"qualifiedName":"@proteinjs/reflection-build-test-b/{ z: number }","typeParameters":[],"directParents":null}],"sourceType":1}},{"v":"@proteinjs/reflection/Loadable"},{"v":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType","value":{"packageName":"@proteinjs/reflection-build-test-b","name":"OptionalLoadableForeignType","filePath":"src/LoadableForeignType.ts","qualifiedName":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType","typeParameters":[],"directParents":[{"packageName":"@proteinjs/reflection","name":"Loadable","filePath":null,"qualifiedName":"@proteinjs/reflection/Loadable","typeParameters":[],"directParents":null},{"packageName":"@proteinjs/reflection-build-test-b","name":"{ z: number }","filePath":null,"qualifiedName":"@proteinjs/reflection-build-test-b/{ z: number }","typeParameters":[],"directParents":null}],"sourceType":1}},{"v":"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType","value":{"packageName":"@proteinjs/reflection-build-test-b","name":"implementsOptionalLoadableForeignType","filePath":"src/LoadableForeignType.ts","qualifiedName":"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType","type":{"packageName":"@proteinjs/reflection-build-test-b","name":"OptionalLoadableForeignType","filePath":null,"qualifiedName":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType","typeParameters":[],"directParents":[{"packageName":"@proteinjs/reflection-build-test-b","name":"OptionalLoadableForeignType","filePath":null,"qualifiedName":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType","typeParameters":[],"directParents":null}]},"isExported":true,"isConst":true,"sourceType":0}},{"v":"@proteinjs/reflection-build-test-b/LoadableForeignInterface","value":{"packageName":"@proteinjs/reflection-build-test-b","name":"LoadableForeignInterface","filePath":"src/LoadableForeignType.ts","qualifiedName":"@proteinjs/reflection-build-test-b/LoadableForeignInterface","properties":[{"name":"z","type":{"packageName":"","name":"number","filePath":null,"qualifiedName":"/number","typeParameters":null,"directParents":null},"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public"}],"methods":[],"typeParameters":[],"directParents":[{"packageName":"@proteinjs/reflection","name":"Loadable","filePath":null,"qualifiedName":"@proteinjs/reflection/Loadable","properties":[],"methods":[],"typeParameters":[],"directParents":[]}],"sourceType":3}},{"v":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface","value":{"packageName":"@proteinjs/reflection-build-test-b","name":"OptionalLoadableForeignInterface","filePath":"src/LoadableForeignType.ts","qualifiedName":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface","properties":[{"name":"z","type":{"packageName":"","name":"number","filePath":null,"qualifiedName":"/number","typeParameters":null,"directParents":null},"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public"}],"methods":[],"typeParameters":[],"directParents":[{"packageName":"@proteinjs/reflection","name":"Loadable","filePath":null,"qualifiedName":"@proteinjs/reflection/Loadable","properties":[],"methods":[],"typeParameters":[],"directParents":[]}],"sourceType":3}},{"v":"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface","value":{"packageName":"@proteinjs/reflection-build-test-b","name":"ImplementsOptionalLoadableForeignInterface","filePath":"src/LoadableForeignType.ts","qualifiedName":"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface","isAbstract":false,"isStatic":false,"visibility":"public","properties":[{"name":"z","type":null,"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public"}],"methods":[],"typeParameters":[],"directParentInterfaces":[{"packageName":"@proteinjs/reflection-build-test-b","name":"OptionalLoadableForeignInterface","filePath":null,"qualifiedName":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface","properties":[],"methods":[],"typeParameters":[],"directParents":[]}],"directParentClasses":[],"sourceType":2}},{"v":"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass","value":{"packageName":"@proteinjs/reflection-build-test-b","name":"LoadableForeignAbstractClass","filePath":"src/LoadableForeignType.ts","qualifiedName":"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass","isAbstract":true,"isStatic":false,"visibility":"public","properties":[{"name":"z","type":{"packageName":"","name":"number","filePath":null,"qualifiedName":"/number","typeParameters":null,"directParents":null},"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public"}],"methods":[],"typeParameters":[],"directParentInterfaces":[{"packageName":"@proteinjs/reflection","name":"Loadable","filePath":null,"qualifiedName":"@proteinjs/reflection/Loadable","properties":[],"methods":[],"typeParameters":[],"directParents":[]}],"directParentClasses":[],"sourceType":2}},{"v":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass","value":{"packageName":"@proteinjs/reflection-build-test-b","name":"OptionalLoadableForeignAbstractClass","filePath":"src/LoadableForeignType.ts","qualifiedName":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass","isAbstract":true,"isStatic":false,"visibility":"public","properties":[{"name":"z","type":{"packageName":"","name":"number","filePath":null,"qualifiedName":"/number","typeParameters":null,"directParents":null},"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public"}],"methods":[],"typeParameters":[],"directParentInterfaces":[{"packageName":"@proteinjs/reflection","name":"Loadable","filePath":null,"qualifiedName":"@proteinjs/reflection/Loadable","properties":[],"methods":[],"typeParameters":[],"directParents":[]}],"directParentClasses":[],"sourceType":2}},{"v":"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass","value":{"packageName":"@proteinjs/reflection-build-test-b","name":"ImplementsOptionalLoadableForeignAbstractClass","filePath":"src/LoadableForeignType.ts","qualifiedName":"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass","isAbstract":false,"isStatic":false,"visibility":"public","properties":[{"name":"z","type":null,"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public"}],"methods":[],"typeParameters":[],"directParentInterfaces":[],"directParentClasses":[{"packageName":"@proteinjs/reflection-build-test-b","name":"OptionalLoadableForeignAbstractClass","filePath":null,"qualifiedName":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass","isAbstract":false,"isStatic":false,"visibility":"public","properties":[],"methods":[],"typeParameters":[],"directParentInterfaces":[],"directParentClasses":[]}],"sourceType":2}}],"edges":[{"v":"@proteinjs/reflection-build-test-b/LoadableForeignType","w":"@proteinjs/reflection/Loadable","value":"extends type"},{"v":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType","w":"@proteinjs/reflection/Loadable","value":"extends type"},{"v":"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType","w":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType","value":"has type"},{"v":"@proteinjs/reflection-build-test-b/LoadableForeignInterface","w":"@proteinjs/reflection/Loadable","value":"extends interface"},{"v":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface","w":"@proteinjs/reflection/Loadable","value":"extends interface"},{"v":"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface","w":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface","value":"implements interface"},{"v":"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass","w":"@proteinjs/reflection/Loadable","value":"implements interface"},{"v":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass","w":"@proteinjs/reflection/Loadable","value":"implements interface"},{"v":"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass","w":"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass","value":"extends class"}]}';
|
|
7
7
|
|
|
8
8
|
/** Generate Source Links */
|
|
9
9
|
|