UNPKG

@nx/react-native

Version:

The Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides: -Integration with libraries such as Jest, Detox, and Storybook. -Scaffolding for creating buildable libraries th

16 lines (15 loc) 528 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeSchema = normalizeSchema; const devkit_1 = require("@nx/devkit"); function normalizeSchema(tree, schema) { const project = (0, devkit_1.getProjects)(tree).get(schema.project); const { fileName, className } = (0, devkit_1.names)(schema.project); return { ...schema, projectRoot: project.root, offsetFromRoot: (0, devkit_1.offsetFromRoot)(project.root), fileName, className, }; }