UNPKG

@nestjs/cli

Version:

Nest - modern, fast, powerful node.js web framework (@cli)

22 lines (21 loc) 750 B
"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;