UNPKG

nx-serverless-cdk

Version:

nx-serverless-cdk is an Nx plugin for creating AWS CDK applications and libraries inside an Nx monorepo. It offers the possibility to test and debug CDK applications as well as AWS Lambda functions locally. The plugin provides the full flexibility of the

20 lines 750 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getProjectRoot = void 0; const getProjectRoot = (context) => { const projectName = context.projectName; if (!projectName) { throw new Error("Project name isn't defined"); } if (!context.projectsConfigurations) { throw new Error("Projects configurations aren't defined"); } const projectConfiguration = context.projectsConfigurations.projects[projectName]; if (!projectConfiguration) { throw new Error(`Project configuration '${projectName}' isn't defined.`); } const { root } = projectConfiguration; return root; }; exports.getProjectRoot = getProjectRoot; //# sourceMappingURL=get-project-root.js.map