UNPKG

@nx/angular

Version:

The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypre

14 lines (13 loc) 502 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTargetProject = getTargetProject; function getTargetProject(projectName, projects) { let project; if (projectName && !projects.has(projectName)) { throw new Error(`Project (${projectName}) does not exist in the workspace! Please provide a valid project name.`); } else if (projectName && projects.has(projectName)) { project = projects.get(projectName); } return project; }