22 lines
750 B
JavaScript
22 lines
750 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.SchematicRunner = void 0;
|
|
const abstract_runner_1 = require("./abstract.runner");
|
|
class SchematicRunner extends abstract_runner_1.AbstractRunner {
|
|
constructor() {
|
|
super(`node`, [`"${SchematicRunner.findClosestSchematicsBinary()}"`]);
|
|
}
|
|
static getModulePaths() {
|
|
return module.paths;
|
|
}
|
|
static findClosestSchematicsBinary() {
|
|
try {
|
|
return require.resolve('@angular-devkit/schematics-cli/bin/schematics.js', { paths: this.getModulePaths() });
|
|
}
|
|
catch (_a) {
|
|
throw new Error("'schematics' binary path could not be found!");
|
|
}
|
|
}
|
|
}
|
|
exports.SchematicRunner = SchematicRunner;
|