UNPKG

@nx/remix

Version:

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

24 lines (23 loc) 980 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateBuildableConfig = updateBuildableConfig; const devkit_1 = require("@nx/devkit"); function updateBuildableConfig(tree, options) { if (options.isUsingTsSolutionConfig) { return; } // Nest dist under project root to we can link it const project = (0, devkit_1.readProjectConfiguration)(tree, options.projectName); project.targets.build.options = { ...project.targets.build.options, format: ['cjs'], outputPath: (0, devkit_1.joinPathFragments)(project.root, 'dist'), }; (0, devkit_1.updateProjectConfiguration)(tree, options.projectName, project); // Point to nested dist for yarn/npm/pnpm workspaces (0, devkit_1.updateJson)(tree, (0, devkit_1.joinPathFragments)(project.root, 'package.json'), (json) => { json.main = './dist/index.cjs.js'; json.typings = './dist/index.d.ts'; return json; }); }