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.

18 lines (17 loc) 671 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classGenerator = classGenerator; const utils_1 = require("../utils"); async function classGenerator(tree, rawOptions) { const options = await normalizeClassOptions(tree, rawOptions); return (0, utils_1.runNestSchematic)(tree, 'class', options); } exports.default = classGenerator; async function normalizeClassOptions(tree, options) { const normalizedOptions = await (0, utils_1.normalizeOptions)(tree, options); return { ...normalizedOptions, language: options.language, spec: (0, utils_1.unitTestRunnerToSpec)(options.unitTestRunner), }; }