@nx/remix 0.0.0-pr-28808-bceb02f → 0.0.0-pr-28808-ae8ea8d

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-28808-bceb02f",
3
+ "version": "0.0.0-pr-28808-ae8ea8d",
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-28808-bceb02f",
33
- "@nx/js": "0.0.0-pr-28808-bceb02f",
34
- "@nx/react": "0.0.0-pr-28808-bceb02f",
32
+ "@nx/devkit": "0.0.0-pr-28808-ae8ea8d",
33
+ "@nx/js": "0.0.0-pr-28808-ae8ea8d",
34
+ "@nx/react": "0.0.0-pr-28808-ae8ea8d",
35
35
  "tslib": "^2.3.1",
36
36
  "@phenomnomnominal/tsquery": "~5.0.1"
37
37
  },
@@ -228,7 +228,7 @@ export default {...nxPreset};
228
228
  moduleResolution: 'bundler',
229
229
  }, options.linter === 'eslint'
230
230
  ? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
231
- : undefined);
231
+ : undefined, '.');
232
232
  tasks.push(() => {
233
233
  (0, log_show_project_command_1.logShowProjectCommand)(options.projectName);
234
234
  });
@@ -6,6 +6,7 @@ const versions_1 = require("../../../utils/versions");
6
6
  const find_plugin_for_config_file_1 = require("@nx/devkit/src/utils/find-plugin-for-config-file");
7
7
  const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
8
8
  const e2e_web_server_info_utils_1 = require("@nx/devkit/src/generators/e2e-web-server-info-utils");
9
+ const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
9
10
  async function addE2E(tree, options) {
10
11
  const hasRemixPlugin = (0, devkit_1.readNxJson)(tree).plugins?.find((p) => typeof p === 'string'
11
12
  ? p === '@nx/remix/plugin'
@@ -13,14 +14,26 @@ async function addE2E(tree, options) {
13
14
  let e2eWebsServerInfo = await getRemixE2EWebServerInfo(tree, options.projectName, (0, devkit_1.joinPathFragments)(options.projectRoot, 'remix.config.js'), options.addPlugin ?? Boolean(hasRemixPlugin));
14
15
  if (options.e2eTestRunner === 'cypress') {
15
16
  const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/cypress', (0, versions_1.getPackageVersion)(tree, 'nx'));
16
- (0, devkit_1.addProjectConfiguration)(tree, options.e2eProjectName, {
17
- projectType: 'application',
18
- root: options.e2eProjectRoot,
19
- sourceRoot: (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'src'),
20
- targets: {},
21
- tags: [],
22
- implicitDependencies: [options.projectName],
23
- });
17
+ if ((0, ts_solution_setup_1.isUsingTsSolutionSetup)(tree)) {
18
+ (0, devkit_1.writeJson)(tree, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'package.json'), {
19
+ name: options.e2eProjectName,
20
+ version: '0.0.1',
21
+ private: true,
22
+ nx: {
23
+ name: options.e2eProjectName,
24
+ },
25
+ });
26
+ }
27
+ else {
28
+ (0, devkit_1.addProjectConfiguration)(tree, options.e2eProjectName, {
29
+ projectType: 'application',
30
+ root: options.e2eProjectRoot,
31
+ sourceRoot: (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'src'),
32
+ targets: {},
33
+ tags: [],
34
+ implicitDependencies: [options.projectName],
35
+ });
36
+ }
24
37
  const e2eTask = await configurationGenerator(tree, {
25
38
  project: options.e2eProjectName,
26
39
  directory: 'src',