UNPKG

@nx/react

Version:

The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Jest, Vitest, Playwright, Cypress, and Storybook. - Generators for applica

13 lines (12 loc) 501 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeHostName = normalizeHostName; const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils"); async function normalizeHostName(tree, directory, name) { const { projectName } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(tree, { name, directory, projectType: 'application', }); return projectName; }