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

12 lines (11 loc) 648 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.verifyModuleIsScam = verifyModuleIsScam; function verifyModuleIsScam(exportsArray, componentName, declarationsArray) { // Check exports has 1 export and check export exists in declaration and is the same as the component name if (exportsArray.length !== 1 && !(exportsArray.includes(componentName) && declarationsArray.includes(componentName))) { throw new Error(`The NgModule is not a SCAM. Please ensure the NgModule only contains one export and that the component is both declared and exported from the NgModule.`); } }