@nx/remix 24.0.6 → 24.1.0-beta.1

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.
@@ -2,17 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildPostTargetTransformer = buildPostTargetTransformer;
4
4
  const internal_1 = require("@nx/devkit/internal");
5
- const utils_1 = require("./utils");
6
5
  function buildPostTargetTransformer(migrationLogs) {
7
6
  return (target, tree, projectDetails, inferredTargetConfiguration) => {
8
- const remixConfigPath = (0, utils_1.getConfigFilePath)(tree, projectDetails.root);
9
7
  if (target.options) {
10
- handlePropertiesFromTargetOptions(tree, target.options, projectDetails.projectName, projectDetails.root, migrationLogs);
8
+ handlePropertiesFromTargetOptions(target.options, projectDetails.projectName, migrationLogs);
11
9
  }
12
10
  if (target.configurations) {
13
11
  for (const configurationName in target.configurations) {
14
12
  const configuration = target.configurations[configurationName];
15
- handlePropertiesFromTargetOptions(tree, configuration, projectDetails.projectName, projectDetails.root, migrationLogs);
13
+ handlePropertiesFromTargetOptions(configuration, projectDetails.projectName, migrationLogs);
16
14
  }
17
15
  if (Object.keys(target.configurations).length === 0) {
18
16
  if ('defaultConfiguration' in target) {
@@ -35,7 +33,7 @@ function buildPostTargetTransformer(migrationLogs) {
35
33
  return target;
36
34
  };
37
35
  }
38
- function handlePropertiesFromTargetOptions(tree, options, projectName, projectRoot, migrationLogs) {
36
+ function handlePropertiesFromTargetOptions(options, projectName, migrationLogs) {
39
37
  if ('outputPath' in options) {
40
38
  migrationLogs.addLog({
41
39
  project: projectName,
@@ -5,12 +5,12 @@ const utils_1 = require("./utils");
5
5
  function servePostTargetTransformer(migrationLogs) {
6
6
  return (target, tree, projectDetails, inferredTargetConfiguration) => {
7
7
  if (target.options) {
8
- handlePropertiesFromTargetOptions(tree, target.options, projectDetails.projectName, projectDetails.root);
8
+ handlePropertiesFromTargetOptions(target.options);
9
9
  }
10
10
  if (target.configurations) {
11
11
  for (const configurationName in target.configurations) {
12
12
  const configuration = target.configurations[configurationName];
13
- handlePropertiesFromTargetOptions(tree, configuration, projectDetails.projectName, projectDetails.root);
13
+ handlePropertiesFromTargetOptions(configuration);
14
14
  }
15
15
  if (Object.keys(target.configurations).length === 0) {
16
16
  if ('defaultConfiguration' in target) {
@@ -26,7 +26,7 @@ function servePostTargetTransformer(migrationLogs) {
26
26
  return target;
27
27
  };
28
28
  }
29
- function handlePropertiesFromTargetOptions(tree, options, projectName, projectRoot) {
29
+ function handlePropertiesFromTargetOptions(options) {
30
30
  if ('debug' in options) {
31
31
  delete options.debug;
32
32
  }
@@ -76,10 +76,10 @@ async function createNodesInternal(configFilePath, options, context, targetsCach
76
76
  }
77
77
  async function buildRemixTargets(configFilePath, projectRoot, options, context, remixCompiler, isUsingTsSolutionSetup, pmc) {
78
78
  const namedInputs = (0, internal_1.getNamedInputs)(projectRoot, context);
79
- const { buildDirectory, assetsBuildDirectory, serverBuildPath } = await getBuildPaths(configFilePath, projectRoot, context.workspaceRoot, remixCompiler);
79
+ const { buildDirectory, assetsBuildDirectory, serverBuildPath } = await getBuildPaths(configFilePath, context.workspaceRoot, remixCompiler);
80
80
  const targets = {};
81
81
  targets[options.buildTargetName] = buildTarget(options.buildTargetName, projectRoot, buildDirectory, assetsBuildDirectory, namedInputs, remixCompiler, isUsingTsSolutionSetup);
82
- targets[options.devTargetName] = devTarget(serverBuildPath, projectRoot, remixCompiler, namedInputs, isUsingTsSolutionSetup);
82
+ targets[options.devTargetName] = devTarget(projectRoot, remixCompiler, namedInputs, isUsingTsSolutionSetup);
83
83
  targets[options.startTargetName] = startTarget(projectRoot, serverBuildPath, options.buildTargetName, remixCompiler, namedInputs, isUsingTsSolutionSetup);
84
84
  targets[options.serveStaticTargetName] = startTarget(projectRoot, serverBuildPath, options.buildTargetName, remixCompiler, namedInputs, isUsingTsSolutionSetup);
85
85
  (0, internal_2.addBuildAndWatchDepsTargets)(context.workspaceRoot, projectRoot, targets, options, pmc);
@@ -122,7 +122,7 @@ function buildInputs(namedInputs) {
122
122
  { externalDependencies: ['@remix-run/dev'] },
123
123
  ];
124
124
  }
125
- function devTarget(serverBuildPath, projectRoot, remixCompiler, namedInputs, isUsingTsSolutionSetup) {
125
+ function devTarget(projectRoot, remixCompiler, namedInputs, isUsingTsSolutionSetup) {
126
126
  const devTarget = {
127
127
  continuous: true,
128
128
  inputs: buildInputs(namedInputs),
@@ -157,7 +157,7 @@ function startTarget(projectRoot, serverBuildPath, buildTargetName, remixCompile
157
157
  }
158
158
  return startTarget;
159
159
  }
160
- async function getBuildPaths(configFilePath, projectRoot, workspaceRoot, remixCompiler) {
160
+ async function getBuildPaths(configFilePath, workspaceRoot, remixCompiler) {
161
161
  const configPath = (0, path_1.join)(workspaceRoot, configFilePath);
162
162
  if (remixCompiler === RemixCompiler.IsClassic) {
163
163
  let appConfig = await (0, internal_1.loadConfigFile)(configPath);
@@ -4,7 +4,7 @@ exports.REMIX_DEPRECATION_MESSAGE = void 0;
4
4
  exports.warnRemixDeprecation = warnRemixDeprecation;
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  // TODO(v25): Remove @nx/remix entirely - the plugin (createNodes), createWatchPaths,
7
- // plugins/component-testing and the convert-to-inferred generator.
7
+ // plugins/component-testing and the convert-to-inferred generator (NXC-5166).
8
8
  exports.REMIX_DEPRECATION_MESSAGE = '@nx/remix is deprecated and will be removed in Nx 25. Migrate to React Router with @nx/react. See https://nx.dev/docs/technologies/react/remix/introduction for migration instructions.';
9
9
  let warned = false;
10
10
  function warnRemixDeprecation() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/remix",
3
- "version": "24.0.6",
3
+ "version": "24.1.0-beta.1",
4
4
  "description": "Deprecated Remix v2 task inference for Nx. Generators and executors were removed in Nx 24, except convert-to-inferred. The remaining plugin will be removed in Nx 25. Migrate to React Router with @nx/react.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,16 +52,16 @@
52
52
  "supportsOptionalMigrations": true
53
53
  },
54
54
  "dependencies": {
55
- "@nx/devkit": "24.0.6",
56
- "@nx/js": "24.0.6",
55
+ "@nx/devkit": "24.1.0-beta.1",
56
+ "@nx/js": "24.1.0-beta.1",
57
57
  "tslib": "^2.3.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@nx/eslint": "24.0.6",
61
- "nx": "24.0.6"
60
+ "@nx/eslint": "24.1.0-beta.1",
61
+ "nx": "24.1.0-beta.1"
62
62
  },
63
63
  "peerDependencies": {
64
- "@nx/cypress": "24.0.6",
64
+ "@nx/cypress": "24.1.0-beta.1",
65
65
  "@remix-run/dev": "^2.0.0"
66
66
  },
67
67
  "peerDependenciesMeta": {