@nx/remix 22.0.0-beta.2 → 22.0.0-beta.3
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": "22.0.0-beta.
|
|
3
|
+
"version": "22.0.0-beta.3",
|
|
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,15 +29,15 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nx/devkit": "22.0.0-beta.
|
|
33
|
-
"@nx/js": "22.0.0-beta.
|
|
34
|
-
"@nx/react": "22.0.0-beta.
|
|
35
|
-
"@nx/workspace": "22.0.0-beta.
|
|
32
|
+
"@nx/devkit": "22.0.0-beta.3",
|
|
33
|
+
"@nx/js": "22.0.0-beta.3",
|
|
34
|
+
"@nx/react": "22.0.0-beta.3",
|
|
35
|
+
"@nx/workspace": "22.0.0-beta.3",
|
|
36
36
|
"tslib": "^2.3.1",
|
|
37
37
|
"@phenomnomnominal/tsquery": "~5.0.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"nx": "22.0.0-beta.
|
|
40
|
+
"nx": "22.0.0-beta.3"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@remix-run/dev": "^2.14.0"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"exports": {
|
|
49
49
|
".": {
|
|
50
|
-
"
|
|
50
|
+
"default": "./index.js",
|
|
51
51
|
"types": "./index.d.ts"
|
|
52
52
|
},
|
|
53
53
|
"./package.json": "./package.json",
|
package/src/plugins/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CreateDependencies,
|
|
1
|
+
import { type CreateDependencies, CreateNodesV2 } from '@nx/devkit';
|
|
2
2
|
export interface RemixPluginOptions {
|
|
3
3
|
buildTargetName?: string;
|
|
4
4
|
devTargetName?: string;
|
|
@@ -12,6 +12,6 @@ export interface RemixPluginOptions {
|
|
|
12
12
|
* @deprecated The 'createDependencies' function is now a no-op. This functionality is included in 'createNodesV2'.
|
|
13
13
|
*/
|
|
14
14
|
export declare const createDependencies: CreateDependencies;
|
|
15
|
+
export declare const createNodes: CreateNodesV2<RemixPluginOptions>;
|
|
15
16
|
export declare const createNodesV2: CreateNodesV2<RemixPluginOptions>;
|
|
16
|
-
export declare const createNodes: CreateNodes<RemixPluginOptions>;
|
|
17
17
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/remix/src/plugins/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/remix/src/plugins/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,kBAAkB,EAGvB,aAAa,EAQd,MAAM,YAAY,CAAC;AAYpB,MAAM,WAAW,kBAAkB;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAmBD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAEhC,CAAC;AAIF,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,kBAAkB,CAwBzD,CAAC;AAEF,eAAO,MAAM,aAAa,mCAAc,CAAC"}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createNodesV2 = exports.createNodes = exports.createDependencies = void 0;
|
|
4
4
|
const cache_directory_1 = require("nx/src/utils/cache-directory");
|
|
5
5
|
const file_hasher_1 = require("nx/src/hasher/file-hasher");
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -28,7 +28,7 @@ const createDependencies = () => {
|
|
|
28
28
|
};
|
|
29
29
|
exports.createDependencies = createDependencies;
|
|
30
30
|
const remixConfigGlob = '**/{remix,vite}.config.{js,cjs,mjs,ts,cts,mts}';
|
|
31
|
-
exports.
|
|
31
|
+
exports.createNodes = [
|
|
32
32
|
remixConfigGlob,
|
|
33
33
|
async (configFilePaths, options, context) => {
|
|
34
34
|
const optionsHash = (0, file_hasher_1.hashObject)(options);
|
|
@@ -42,13 +42,7 @@ exports.createNodesV2 = [
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
];
|
|
45
|
-
exports.
|
|
46
|
-
remixConfigGlob,
|
|
47
|
-
async (configFilePath, options, context) => {
|
|
48
|
-
devkit_1.logger.warn('`createNodes` is deprecated. Update your plugin to utilize createNodesV2 instead. In Nx 20, this will change to the createNodesV2 API.');
|
|
49
|
-
return createNodesInternal(configFilePath, options, context, {}, (0, ts_solution_setup_1.isUsingTsSolutionSetup)());
|
|
50
|
-
},
|
|
51
|
-
];
|
|
45
|
+
exports.createNodesV2 = exports.createNodes;
|
|
52
46
|
async function createNodesInternal(configFilePath, options, context, targetsCache, isUsingTsSolutionSetup) {
|
|
53
47
|
const projectRoot = (0, path_1.dirname)(configFilePath);
|
|
54
48
|
const fullyQualifiedProjectRoot = (0, path_1.join)(context.workspaceRoot, projectRoot);
|