@nx/node 18.1.0-beta.0 → 18.1.0-beta.10

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/node",
3
- "version": "18.1.0-beta.0",
3
+ "version": "18.1.0-beta.10",
4
4
  "private": false,
5
5
  "description": "The Node Plugin for Nx contains generators to manage Node applications within an Nx workspace.",
6
6
  "repository": {
@@ -31,11 +31,11 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "tslib": "^2.3.0",
34
- "@nx/devkit": "18.1.0-beta.0",
35
- "@nx/jest": "18.1.0-beta.0",
36
- "@nx/js": "18.1.0-beta.0",
37
- "@nx/eslint": "18.1.0-beta.0",
38
- "@nrwl/node": "18.1.0-beta.0"
34
+ "@nx/devkit": "18.1.0-beta.10",
35
+ "@nx/jest": "18.1.0-beta.10",
36
+ "@nx/js": "18.1.0-beta.10",
37
+ "@nx/eslint": "18.1.0-beta.10",
38
+ "@nrwl/node": "18.1.0-beta.10"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
@@ -391,8 +391,11 @@ async function normalizeOptions(host, options) {
391
391
  const parsedTags = options.tags
392
392
  ? options.tags.split(',').map((s) => s.trim())
393
393
  : [];
394
+ const nxJson = (0, devkit_1.readNxJson)(host);
395
+ const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
396
+ nxJson.useInferencePlugins !== false;
394
397
  return {
395
- addPlugin: process.env.NX_ADD_PLUGINS !== 'false',
398
+ addPlugin,
396
399
  ...options,
397
400
  name: appProjectName,
398
401
  frontendProject: options.frontendProject
@@ -108,8 +108,11 @@ async function normalizeOptions(tree, options) {
108
108
  // this is an internal generator, don't save defaults
109
109
  callingGenerator: null,
110
110
  });
111
+ const nxJson = (0, devkit_1.readNxJson)(tree);
112
+ const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
113
+ nxJson.useInferencePlugins !== false;
111
114
  return {
112
- addPlugin: process.env.NX_ADD_PLUGINS !== 'false',
115
+ addPlugin,
113
116
  ...options,
114
117
  e2eProjectRoot,
115
118
  e2eProjectName,
@@ -62,7 +62,10 @@ async function normalizeOptions(tree, options) {
62
62
  callingGenerator: '@nx/node:library',
63
63
  });
64
64
  options.projectNameAndRootFormat = projectNameAndRootFormat;
65
- options.addPlugin ??= process.env.NX_ADD_PLUGINS !== 'false';
65
+ const nxJson = (0, devkit_1.readNxJson)(tree);
66
+ const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
67
+ nxJson.useInferencePlugins !== false;
68
+ options.addPlugin ??= addPluginDefault;
66
69
  const fileName = getCaseAwareFileName({
67
70
  fileName: options.simpleModuleName
68
71
  ? projectNames.projectSimpleName