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

21 lines 882 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.runExecutor = void 0; const node_path_1 = require("node:path"); const execute_command_1 = require("../../utils/execute-command"); const get_project_root_1 = require("../../utils/get-project-root"); const runExecutor = async (options, context) => { const projectRootResolved = (0, node_path_1.resolve)(context.root, (0, get_project_root_1.getProjectRoot)(context)); const { predefinedArguments, __unparsed__ } = options; const command = `npx`; const args = ['aws-cdk', ...(predefinedArguments ?? []), ...__unparsed__]; await (0, execute_command_1.executeCommand)(command, args, { cwd: projectRootResolved, }); return { success: true, }; }; exports.runExecutor = runExecutor; exports.default = exports.runExecutor; //# sourceMappingURL=executor.js.map