@nx/plugin 23.3.0-pr.36958.5270397 → 23.3.0-pr.37036.2b7abf9

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.
@@ -4,8 +4,9 @@ exports.pluginGenerator = pluginGenerator;
4
4
  exports.pluginGeneratorInternal = pluginGeneratorInternal;
5
5
  const tslib_1 = require("tslib");
6
6
  const devkit_1 = require("@nx/devkit");
7
+ const internal_1 = require("@nx/devkit/internal");
7
8
  const js_1 = require("@nx/js");
8
- const internal_1 = require("@nx/js/internal");
9
+ const internal_2 = require("@nx/js/internal");
9
10
  const path = tslib_1.__importStar(require("path"));
10
11
  const e2e_1 = require("../e2e-project/e2e");
11
12
  const generator_1 = tslib_1.__importDefault(require("../lint-checks/generator"));
@@ -22,7 +23,7 @@ function updatePluginConfig(host, options) {
22
23
  const project = (0, devkit_1.readProjectConfiguration)(host, options.projectName);
23
24
  if (project.targets.build) {
24
25
  if (options.isTsSolutionSetup && options.bundler === 'tsc') {
25
- project.targets.build.options.rootDir = (0, internal_1.getProjectSourceRoot)(project, host);
26
+ project.targets.build.options.rootDir = (0, internal_2.getProjectSourceRoot)(project, host);
26
27
  project.targets.build.options.generatePackageJson = false;
27
28
  }
28
29
  project.targets.build.options.assets = [
@@ -79,6 +80,14 @@ async function pluginGeneratorInternal(host, schema) {
79
80
  if (options.bundler === 'tsc') {
80
81
  tasks.push((0, js_1.addTsLibDependencies)(host));
81
82
  }
83
+ // @nx/plugin depends on @nx/jest, so jest-resolve is installed even without a
84
+ // jest setup. It depends on unrs-resolver and, from jest 30.5.0, on a
85
+ // jest-haste-map that depends on @parcel/watcher. Neither build is needed:
86
+ // the binding has a fallback and the watcher ships prebuilt.
87
+ (0, internal_1.acknowledgeBuildScripts)(host, (0, devkit_1.detectPackageManager)(host.root), {
88
+ '@parcel/watcher': false,
89
+ 'unrs-resolver': false,
90
+ });
82
91
  tasks.push((0, devkit_1.addDependenciesToPackageJson)(host, {
83
92
  '@nx/devkit': nxVersion,
84
93
  }, {
@@ -93,8 +102,8 @@ async function pluginGeneratorInternal(host, schema) {
93
102
  }));
94
103
  // Ensures Swc Deps are installed to handle running
95
104
  // local plugin generators and executors
96
- tasks.push((0, internal_1.addSwcDependencies)(host));
97
- tasks.push((0, internal_1.addSwcRegisterDependencies)(host));
105
+ tasks.push((0, internal_2.addSwcDependencies)(host));
106
+ tasks.push((0, internal_2.addSwcRegisterDependencies)(host));
98
107
  await addFiles(host, options);
99
108
  updatePluginConfig(host, options);
100
109
  if (options.e2eTestRunner !== 'none') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/plugin",
3
- "version": "23.3.0-pr.36958.5270397",
3
+ "version": "23.3.0-pr.37036.2b7abf9",
4
4
  "private": false,
5
5
  "description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
6
6
  "repository": {
@@ -36,16 +36,16 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "tslib": "^2.3.0",
39
- "@nx/devkit": "23.3.0-pr.36958.5270397",
40
- "@nx/jest": "23.3.0-pr.36958.5270397",
41
- "@nx/js": "23.3.0-pr.36958.5270397",
42
- "@nx/eslint": "23.3.0-pr.36958.5270397"
39
+ "@nx/devkit": "23.3.0-pr.37036.2b7abf9",
40
+ "@nx/jest": "23.3.0-pr.37036.2b7abf9",
41
+ "@nx/js": "23.3.0-pr.37036.2b7abf9",
42
+ "@nx/eslint": "23.3.0-pr.37036.2b7abf9"
43
43
  },
44
44
  "devDependencies": {
45
- "nx": "23.3.0-pr.36958.5270397"
45
+ "nx": "23.3.0-pr.37036.2b7abf9"
46
46
  },
47
47
  "peerDependencies": {
48
- "@nx/vitest": "23.3.0-pr.36958.5270397"
48
+ "@nx/vitest": "23.3.0-pr.37036.2b7abf9"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "@nx/vitest": {