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) 665 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setupTspathForRemote = setupTspathForRemote; const devkit_1 = require("@nx/devkit"); const js_1 = require("@nx/js"); const maybe_js_1 = require("../../../utils/maybe-js"); function setupTspathForRemote(tree, options) { const project = (0, devkit_1.readProjectConfiguration)(tree, options.projectName); const exportPath = (0, maybe_js_1.maybeJs)(options, './src/remote-entry.ts'); const exportName = 'Module'; (0, js_1.addTsConfigPath)(tree, `${options.projectName.replace(/-/g, '_')}/${exportName}`, [(0, devkit_1.joinPathFragments)(project.root, exportPath)]); }