@nx/remix 0.0.0-pr-29314-e664f92 → 0.0.0-pr-29314-bfd9d0c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/remix",
3
- "version": "0.0.0-pr-29314-e664f92",
3
+ "version": "0.0.0-pr-29314-bfd9d0c",
4
4
  "description": "The Remix plugin for Nx contains executors and generators for managing Remix applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Jest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, routes, loaders, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,9 +29,9 @@
29
29
  "migrations": "./migrations.json"
30
30
  },
31
31
  "dependencies": {
32
- "@nx/devkit": "0.0.0-pr-29314-e664f92",
33
- "@nx/js": "0.0.0-pr-29314-e664f92",
34
- "@nx/react": "0.0.0-pr-29314-e664f92",
32
+ "@nx/devkit": "0.0.0-pr-29314-bfd9d0c",
33
+ "@nx/js": "0.0.0-pr-29314-bfd9d0c",
34
+ "@nx/react": "0.0.0-pr-29314-bfd9d0c",
35
35
  "tslib": "^2.3.1",
36
36
  "@phenomnomnominal/tsquery": "~5.0.1"
37
37
  },
@@ -134,7 +134,6 @@ export default function Index() {
134
134
 
135
135
  exports[`Remix Application Integrated Repo --e2eTestRunner should generate a cypress e2e application for the app 1`] = `
136
136
  "import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset';
137
-
138
137
  import { defineConfig } from 'cypress';
139
138
 
140
139
  export default defineConfig({
@@ -386,7 +385,6 @@ export default function Index() {
386
385
 
387
386
  exports[`Remix Application Standalone Project Repo --e2eTestRunner should generate a cypress e2e application for the app 1`] = `
388
387
  "import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset';
389
-
390
388
  import { defineConfig } from 'cypress';
391
389
 
392
390
  export default defineConfig({
@@ -229,6 +229,11 @@ export default {...nxPreset};
229
229
  }, options.linter === 'eslint'
230
230
  ? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
231
231
  : undefined, '.');
232
+ // If we are using the new TS solution
233
+ // We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
234
+ if (options.useTsSolution) {
235
+ (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.projectRoot);
236
+ }
232
237
  tasks.push(() => {
233
238
  (0, log_show_project_command_1.logShowProjectCommand)(options.projectName);
234
239
  });
@@ -3,5 +3,6 @@ import type { NxRemixGeneratorSchema } from '../schema';
3
3
  export interface RemixLibraryOptions extends NxRemixGeneratorSchema {
4
4
  projectName: string;
5
5
  projectRoot: string;
6
+ isUsingTsSolutionConfig: boolean;
6
7
  }
7
8
  export declare function normalizeOptions(tree: Tree, options: NxRemixGeneratorSchema): Promise<RemixLibraryOptions>;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeOptions = normalizeOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
6
+ const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
6
7
  async function normalizeOptions(tree, options) {
7
8
  await (0, project_name_and_root_utils_1.ensureProjectName)(tree, options, 'application');
8
9
  const { projectName, projectRoot } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(tree, {
@@ -19,5 +20,6 @@ async function normalizeOptions(tree, options) {
19
20
  unitTestRunner: options.unitTestRunner ?? 'vitest',
20
21
  projectName,
21
22
  projectRoot,
23
+ isUsingTsSolutionConfig: (0, ts_solution_setup_1.isUsingTsSolutionSetup)(tree),
22
24
  };
23
25
  }
@@ -49,6 +49,9 @@ async function remixLibraryGeneratorInternal(tree, schema) {
49
49
  }, options.linter === 'eslint'
50
50
  ? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
51
51
  : undefined);
52
+ if (options.isUsingTsSolutionConfig) {
53
+ (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.projectRoot);
54
+ }
52
55
  if (!options.skipFormat) {
53
56
  await (0, devkit_1.formatFiles)(tree);
54
57
  }