@nx/remix 22.7.0-beta.4 → 22.7.0-beta.6

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/assets.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "outDir": "dist/packages/remix",
3
+ "assets": [
4
+ { "glob": "**/files/**" },
5
+ {
6
+ "glob": "**/*.json",
7
+ "ignore": ["tsconfig*.json", "project.json", ".eslintrc.json"]
8
+ },
9
+ { "glob": "**/*.d.ts" },
10
+ { "glob": "**/*.md" },
11
+ "LICENSE"
12
+ ]
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/remix",
3
- "version": "22.7.0-beta.4",
3
+ "version": "22.7.0-beta.6",
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",
@@ -22,23 +22,24 @@
22
22
  },
23
23
  "homepage": "https://nx.dev",
24
24
  "main": "./index.js",
25
- "typings": "./index.d.ts",
25
+ "type": "commonjs",
26
+ "types": "./index.d.ts",
26
27
  "generators": "./generators.json",
27
28
  "executors": "./executors.json",
28
29
  "nx-migrations": {
29
30
  "migrations": "./migrations.json"
30
31
  },
31
32
  "dependencies": {
32
- "@nx/devkit": "22.7.0-beta.4",
33
- "@nx/js": "22.7.0-beta.4",
34
- "@nx/react": "22.7.0-beta.4",
35
- "@nx/workspace": "22.7.0-beta.4",
33
+ "@nx/devkit": "22.7.0-beta.6",
34
+ "@nx/js": "22.7.0-beta.6",
35
+ "@nx/react": "22.7.0-beta.6",
36
+ "@nx/workspace": "22.7.0-beta.6",
36
37
  "tslib": "^2.3.0",
37
38
  "@phenomnomnominal/tsquery": "~6.1.4"
38
39
  },
39
40
  "devDependencies": {
40
- "nx": "22.7.0-beta.4",
41
- "@nx/vitest": "22.7.0-beta.4"
41
+ "nx": "22.7.0-beta.6",
42
+ "@nx/vitest": "22.7.0-beta.6"
42
43
  },
43
44
  "peerDependencies": {
44
45
  "@remix-run/dev": "^2.17.3"
@@ -62,7 +63,5 @@
62
63
  "./generators": "./generators.js",
63
64
  "./plugin": "./plugin.js",
64
65
  "./plugins/component-testing": "./plugins/component-testing/index.js"
65
- },
66
- "types": "./index.d.ts",
67
- "type": "commonjs"
66
+ }
68
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/remix/plugins/component-testing/index.ts"],"names":[],"mappings":"AAMA,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,MAAM,GAAG;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,aAAa,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAuCA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/remix/plugins/component-testing/index.ts"],"names":[],"mappings":"AAMA,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,MAAM,GAAG;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,aAAa,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CA0CA"}
@@ -1,37 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  Object.defineProperty(exports, "__esModule", { value: true });
36
3
  exports.nxComponentTestingPreset = nxComponentTestingPreset;
37
4
  const cypress_preset_1 = require("@nx/cypress/plugins/cypress-preset");
@@ -66,7 +33,10 @@ function nxComponentTestingPreset(pathToConfig) {
66
33
  ...{ framework: 'react', bundler: 'vite' },
67
34
  viteConfig: async () => {
68
35
  const viteConfigPath = findViteConfig(normalizedProjectRootPath);
69
- const { mergeConfig, loadConfigFromFile, searchForWorkspaceRoot } = await Promise.resolve().then(() => __importStar(require('vite')));
36
+ // TODO(jack): Remove this when @nx/remix switches to
37
+ // moduleResolution: "nodenext". Vite 8 ships ESM-only type
38
+ // declarations (.d.mts) not resolvable under moduleResolution: "node".
39
+ const { mergeConfig, loadConfigFromFile, searchForWorkspaceRoot } = await Function('return import("vite")')();
70
40
  const resolved = await loadConfigFromFile({
71
41
  mode: 'watch',
72
42
  command: 'serve',
package/project.json CHANGED
@@ -6,33 +6,8 @@
6
6
  "targets": {
7
7
  "build": {
8
8
  "outputs": ["{workspaceRoot}/dist/packages/remix/README.md"],
9
- "command": "node ./scripts/copy-readme.js remix"
10
- },
11
- "legacy-post-build": {
12
- "executor": "@nx/workspace-plugin:legacy-post-build",
13
- "options": {
14
- "tsConfig": "./tsconfig.lib.json",
15
- "assets": [
16
- "packages/remix/*.md",
17
- {
18
- "input": "./packages/remix/src",
19
- "glob": "**/!(*.ts)",
20
- "output": "./src"
21
- },
22
- {
23
- "input": "./packages/remix/src",
24
- "glob": "**/*.d.ts",
25
- "output": "./src"
26
- },
27
- {
28
- "input": "./packages/remix",
29
- "glob": "**.json",
30
- "output": ".",
31
- "ignore": ["**/tsconfig*.json", "project.json", ".eslintrc.json"]
32
- },
33
- "LICENSE"
34
- ]
35
- }
9
+ "command": "node ./scripts/copy-readme.js remix",
10
+ "inputs": ["copyReadme"]
36
11
  }
37
12
  },
38
13
  "tags": []
@@ -1,2 +1,2 @@
1
- export declare function loadViteDynamicImport(): Promise<typeof import("vite")>;
1
+ export declare function loadViteDynamicImport(): Promise<any>;
2
2
  //# sourceMappingURL=executor-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"executor-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/remix/src/utils/executor-utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,IACW,OAAO,CAAC,cAAc,MAAM,CAAC,CAAC,CAC7E"}
1
+ {"version":3,"file":"executor-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/remix/src/utils/executor-utils.ts"],"names":[],"mappings":"AAGA,wBAAgB,qBAAqB,IACW,OAAO,CAAC,GAAG,CAAC,CAC3D"}
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadViteDynamicImport = loadViteDynamicImport;
4
+ // TODO(jack): Remove this cast when @nx/remix switches to moduleResolution:
5
+ // "nodenext". Vite 8 ships ESM-only type declarations (.d.mts) not resolvable
6
+ // under moduleResolution: "node".
4
7
  function loadViteDynamicImport() {
5
8
  return Function('return import("vite")')();
6
9
  }