| Current Path : /home/deltalab/PMS/logistic-backend/node_modules/@nestjs/cli/lib/runners/ |
| Current File : //home/deltalab/PMS/logistic-backend/node_modules/@nestjs/cli/lib/runners/schematic.runner.js |
"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;