@nx/remix 17.3.0-beta.6 → 17.3.0-beta.8

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.6",
3
+ "version": "17.3.0-beta.8",
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.6",
32
- "@nx/js": "17.3.0-beta.6",
33
- "@nx/react": "17.3.0-beta.6",
31
+ "@nx/devkit": "17.3.0-beta.8",
32
+ "@nx/js": "17.3.0-beta.8",
33
+ "@nx/react": "17.3.0-beta.8",
34
34
  "tslib": "^2.3.1",
35
35
  "@phenomnomnominal/tsquery": "~5.0.1",
36
- "@nrwl/remix": "17.3.0-beta.6"
36
+ "@nrwl/remix": "17.3.0-beta.8"
37
37
  },
38
38
  "peerDependencies": {},
39
39
  "publishConfig": {
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.remixInitGenerator = void 0;
4
4
  const devkit_1 = require("@nx/devkit");
5
+ const update_package_scripts_1 = require("@nx/devkit/src/utils/update-package-scripts");
6
+ const plugin_1 = require("../../plugins/plugin");
5
7
  const versions_1 = require("../../utils/versions");
6
8
  function addPlugin(tree) {
7
9
  const nxJson = (0, devkit_1.readNxJson)(tree);
@@ -38,6 +40,9 @@ async function remixInitGenerator(tree, options) {
38
40
  if (process.env.NX_PCV3 === 'true') {
39
41
  addPlugin(tree);
40
42
  }
43
+ if (options.updatePackageScripts) {
44
+ await (0, update_package_scripts_1.updatePackageScripts)(tree, plugin_1.createNodes);
45
+ }
41
46
  if (!options.skipFormat) {
42
47
  await (0, devkit_1.formatFiles)(tree);
43
48
  }
@@ -2,4 +2,5 @@ export interface Schema {
2
2
  skipFormat?: boolean;
3
3
  skipPackageJson?: boolean;
4
4
  keepExistingVersions?: boolean;
5
+ updatePackageScripts?: boolean;
5
6
  }
@@ -21,6 +21,12 @@
21
21
  "x-priority": "internal",
22
22
  "description": "Keep existing dependencies versions",
23
23
  "default": false
24
+ },
25
+ "updatePackageScripts": {
26
+ "type": "boolean",
27
+ "x-priority": "internal",
28
+ "description": "Update `package.json` scripts with inferred targets",
29
+ "default": false
24
30
  }
25
31
  },
26
32
  "required": []
@@ -85,5 +85,5 @@
85
85
  "description": "Add a Storybook Test-Runner target."
86
86
  }
87
87
  },
88
- "required": ["name"]
88
+ "required": ["project"]
89
89
  }