@rxap/plugin-library
Version:
This package provides generators and executors for managing and maintaining Nx plugin libraries. It includes functionality for generating index exports, fixing dependencies, generating JSON schemas, and more. It helps streamline the development process fo
28 lines • 1.3 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const utilities_1 = require("@rxap/utilities");
const executor_1 = require("../run-generator/executor");
const runExecutor = (options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
var _a;
console.log('Executor ran for FixDependencies', options);
if (!((_a = options.projects) === null || _a === void 0 ? void 0 : _a.length)) {
if (context.projectName) {
if (context.root === context.projectsConfigurations.projects[context.projectName].root) {
console.log('Current project is root project and no projects are defined. Run fix-dependencies for all projects');
}
else {
options.projects = [context.projectName];
}
}
else {
throw new Error('No projects are defined and can not determine the current project. Please define the projects to fix.');
}
}
return (0, executor_1.runExecutor)({
generator: '@rxap/plugin-library:fix-dependencies',
options: (0, utilities_1.DeleteEmptyProperties)(Object.assign({}, options)),
}, context);
});
exports.default = runExecutor;
//# sourceMappingURL=executor.js.map