UNPKG

@nx/nest

Version:

The Nx Plugin for Nest contains executors and generators for allowing your workspace to create powerful Nest best in class APIs.

19 lines (18 loc) 664 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.decoratorGenerator = decoratorGenerator; const utils_1 = require("../utils"); async function decoratorGenerator(tree, rawOptions) { const options = await normalizeDecoratorOptions(tree, rawOptions); return (0, utils_1.runNestSchematic)(tree, 'decorator', options); } exports.default = decoratorGenerator; async function normalizeDecoratorOptions(tree, options) { const normalizedOptions = await (0, utils_1.normalizeOptions)(tree, options, { suffix: 'decorator', }); return { ...normalizedOptions, language: options.language, }; }