@nx/remix 17.3.0-beta.4 → 17.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/remix",
|
|
3
|
-
"version": "17.3.0-beta.
|
|
3
|
+
"version": "17.3.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, 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",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"migrations": "./migrations.json"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nx/devkit": "17.3.0-beta.
|
|
32
|
-
"@nx/js": "17.3.0-beta.
|
|
33
|
-
"@nx/react": "17.3.0-beta.
|
|
31
|
+
"@nx/devkit": "17.3.0-beta.6",
|
|
32
|
+
"@nx/js": "17.3.0-beta.6",
|
|
33
|
+
"@nx/react": "17.3.0-beta.6",
|
|
34
34
|
"tslib": "^2.3.1",
|
|
35
35
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
36
|
-
"@nrwl/remix": "17.3.0-beta.
|
|
36
|
+
"@nrwl/remix": "17.3.0-beta.6"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {},
|
|
39
39
|
"publishConfig": {
|
|
@@ -7,12 +7,14 @@ const lib_1 = require("./lib");
|
|
|
7
7
|
const update_dependencies_1 = require("../utils/update-dependencies");
|
|
8
8
|
const init_1 = require("../init/init");
|
|
9
9
|
const js_1 = require("@nx/js");
|
|
10
|
+
const add_build_target_defaults_1 = require("@nx/devkit/src/generators/add-build-target-defaults");
|
|
10
11
|
async function default_1(tree, _options) {
|
|
11
12
|
const options = await (0, lib_1.normalizeOptions)(tree, _options);
|
|
12
13
|
const tasks = [
|
|
13
14
|
await (0, init_1.default)(tree, { skipFormat: true }),
|
|
14
15
|
await (0, js_1.initGenerator)(tree, { skipFormat: true }),
|
|
15
16
|
];
|
|
17
|
+
(0, add_build_target_defaults_1.addBuildTargetDefaults)(tree, '@nx/remix:build');
|
|
16
18
|
(0, devkit_1.addProjectConfiguration)(tree, options.projectName, {
|
|
17
19
|
root: options.projectRoot,
|
|
18
20
|
sourceRoot: `${options.projectRoot}`,
|
|
@@ -188,7 +190,6 @@ async function default_1(tree, _options) {
|
|
|
188
190
|
}
|
|
189
191
|
exports.default = default_1;
|
|
190
192
|
function addFileServerTarget(tree, options, targetName) {
|
|
191
|
-
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@nx/web': (0, versions_1.getPackageVersion)(tree, 'nx') });
|
|
192
193
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.projectName);
|
|
193
194
|
projectConfig.targets[targetName] = {
|
|
194
195
|
executor: '@nx/web:file-server',
|
|
@@ -30,8 +30,9 @@ async function remixInitGenerator(tree, options) {
|
|
|
30
30
|
const installTask = (0, devkit_1.addDependenciesToPackageJson)(tree, {
|
|
31
31
|
'@remix-run/serve': versions_1.remixVersion,
|
|
32
32
|
}, {
|
|
33
|
+
'@nx/web': versions_1.nxVersion,
|
|
33
34
|
'@remix-run/dev': versions_1.remixVersion,
|
|
34
|
-
});
|
|
35
|
+
}, undefined, options.keepExistingVersions);
|
|
35
36
|
tasks.push(installTask);
|
|
36
37
|
}
|
|
37
38
|
if (process.env.NX_PCV3 === 'true') {
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
"description": "Do not add dependencies to `package.json`.",
|
|
16
16
|
"type": "boolean",
|
|
17
17
|
"default": false
|
|
18
|
+
},
|
|
19
|
+
"keepExistingVersions": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"x-priority": "internal",
|
|
22
|
+
"description": "Keep existing dependencies versions",
|
|
23
|
+
"default": false
|
|
18
24
|
}
|
|
19
25
|
},
|
|
20
26
|
"required": []
|