@nx/remix 23.0.0-beta.8 → 23.0.0-beta.9

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": "23.0.0-beta.8",
3
+ "version": "23.0.0-beta.9",
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",
@@ -30,16 +30,16 @@
30
30
  "migrations": "./migrations.json"
31
31
  },
32
32
  "dependencies": {
33
- "@nx/devkit": "23.0.0-beta.8",
34
- "@nx/js": "23.0.0-beta.8",
35
- "@nx/react": "23.0.0-beta.8",
36
- "@nx/workspace": "23.0.0-beta.8",
33
+ "@nx/devkit": "23.0.0-beta.9",
34
+ "@nx/js": "23.0.0-beta.9",
35
+ "@nx/react": "23.0.0-beta.9",
36
+ "@nx/workspace": "23.0.0-beta.9",
37
37
  "tslib": "^2.3.0",
38
38
  "@phenomnomnominal/tsquery": "~6.2.0"
39
39
  },
40
40
  "devDependencies": {
41
- "nx": "23.0.0-beta.8",
42
- "@nx/vitest": "23.0.0-beta.8"
41
+ "nx": "23.0.0-beta.9",
42
+ "@nx/vitest": "23.0.0-beta.9"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@remix-run/dev": "^2.17.3"
@@ -1 +1 @@
1
- {"version":3,"file":"build.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/executors/build/build.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,eAAe,EACrB,MAAM,YAAY,CAAC;AAOpB,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AA+BjD,wBAA8B,aAAa,CACzC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,eAAe;;GAyEzB"}
1
+ {"version":3,"file":"build.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/executors/build/build.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,eAAe,EACrB,MAAM,YAAY,CAAC;AAOpB,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAgCjD,wBAA8B,aAAa,CACzC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,eAAe;;GA2EzB"}
@@ -7,6 +7,7 @@ const fileutils_1 = require("@nx/workspace/src/utilities/fileutils");
7
7
  const child_process_1 = require("child_process");
8
8
  const fs_extra_1 = require("fs-extra");
9
9
  const path_1 = require("path");
10
+ const deprecation_1 = require("../../utils/deprecation");
10
11
  function buildRemixBuildArgs(options) {
11
12
  const args = ['build'];
12
13
  if (options.sourcemap) {
@@ -32,6 +33,7 @@ async function runBuild(options, context) {
32
33
  });
33
34
  }
34
35
  async function buildExecutor(options, context) {
36
+ (0, deprecation_1.warnRemixBuildExecutorDeprecation)();
35
37
  const projectRoot = context.projectGraph.nodes[context.projectName].data.root;
36
38
  try {
37
39
  await runBuild(options, context);
@@ -6,6 +6,7 @@
6
6
  "title": "Remix Build",
7
7
  "description": "Build a Remix app.",
8
8
  "type": "object",
9
+ "x-deprecated": "The `@nx/remix:build` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/remix:convert-to-inferred` to migrate to the `@nx/remix/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
9
10
  "properties": {
10
11
  "outputPath": {
11
12
  "type": "string",
@@ -6,6 +6,7 @@
6
6
  "title": "Remix Serve",
7
7
  "description": "Serve a Remix app.",
8
8
  "type": "object",
9
+ "x-deprecated": "The `@nx/remix:serve` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/remix:convert-to-inferred` to migrate to the `@nx/remix/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
9
10
  "properties": {
10
11
  "port": {
11
12
  "type": "number",
@@ -1 +1 @@
1
- {"version":3,"file":"serve.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/executors/serve/serve.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAKjE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAyCjD,wBAA+B,aAAa,CAC1C,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,eAAe;aAcc,OAAO;aAAW,MAAM;cAiC/D"}
1
+ {"version":3,"file":"serve.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/executors/serve/serve.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAKjE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AA0CjD,wBAA+B,aAAa,CAC1C,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,eAAe;aAgBc,OAAO;aAAW,MAAM;cAiC/D"}
@@ -6,6 +6,7 @@ const internal_1 = require("@nx/devkit/internal");
6
6
  const wait_for_port_open_1 = require("@nx/web/src/utils/wait-for-port-open");
7
7
  const node_child_process_1 = require("node:child_process");
8
8
  const node_path_1 = require("node:path");
9
+ const deprecation_1 = require("../../utils/deprecation");
9
10
  function normalizeOptions(schema) {
10
11
  return {
11
12
  ...schema,
@@ -37,6 +38,7 @@ function buildRemixDevArgs(options) {
37
38
  return args;
38
39
  }
39
40
  async function* serveExecutor(schema, context) {
41
+ (0, deprecation_1.warnRemixServeExecutorDeprecation)();
40
42
  const options = normalizeOptions(schema);
41
43
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
42
44
  const remixBin = require.resolve('@remix-run/dev/dist/cli');
@@ -0,0 +1,5 @@
1
+ export declare const REMIX_BUILD_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/remix:build` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/remix:convert-to-inferred` to migrate to the `@nx/remix/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
2
+ export declare const REMIX_SERVE_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/remix:serve` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/remix:convert-to-inferred` to migrate to the `@nx/remix/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
3
+ export declare function warnRemixBuildExecutorDeprecation(): void;
4
+ export declare function warnRemixServeExecutorDeprecation(): void;
5
+ //# sourceMappingURL=deprecation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecation.d.ts","sourceRoot":"","sources":["../../../../../packages/remix/src/utils/deprecation.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wCAAwC,+PACyM,CAAC;AAE/P,eAAO,MAAM,wCAAwC,+PACyM,CAAC;AAE/P,wBAAgB,iCAAiC,IAAI,IAAI,CAExD;AAED,wBAAgB,iCAAiC,IAAI,IAAI,CAExD"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REMIX_SERVE_EXECUTOR_DEPRECATION_MESSAGE = exports.REMIX_BUILD_EXECUTOR_DEPRECATION_MESSAGE = void 0;
4
+ exports.warnRemixBuildExecutorDeprecation = warnRemixBuildExecutorDeprecation;
5
+ exports.warnRemixServeExecutorDeprecation = warnRemixServeExecutorDeprecation;
6
+ const devkit_1 = require("@nx/devkit");
7
+ // TODO(v24): Remove the @nx/remix:build and @nx/remix:serve executors. The
8
+ // inferred plugin (@nx/remix/plugin) and the convert-to-inferred generator
9
+ // stay supported.
10
+ exports.REMIX_BUILD_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/remix:build` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/remix:convert-to-inferred` to migrate to the `@nx/remix/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
11
+ exports.REMIX_SERVE_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/remix:serve` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/remix:convert-to-inferred` to migrate to the `@nx/remix/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
12
+ function warnRemixBuildExecutorDeprecation() {
13
+ devkit_1.logger.warn(exports.REMIX_BUILD_EXECUTOR_DEPRECATION_MESSAGE);
14
+ }
15
+ function warnRemixServeExecutorDeprecation() {
16
+ devkit_1.logger.warn(exports.REMIX_SERVE_EXECUTOR_DEPRECATION_MESSAGE);
17
+ }