@nx/nest 18.1.0-beta.2 → 18.1.0-beta.4

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/nest",
3
- "version": "18.1.0-beta.2",
3
+ "version": "18.1.0-beta.4",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Nest contains executors and generators for allowing your workspace to create powerful Nest best in class APIs.",
6
6
  "repository": {
@@ -31,13 +31,13 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@nestjs/schematics": "^9.1.0",
34
- "@nx/devkit": "18.1.0-beta.2",
35
- "@nx/js": "18.1.0-beta.2",
36
- "@nx/eslint": "18.1.0-beta.2",
37
- "@nx/node": "18.1.0-beta.2",
34
+ "@nx/devkit": "18.1.0-beta.4",
35
+ "@nx/js": "18.1.0-beta.4",
36
+ "@nx/eslint": "18.1.0-beta.4",
37
+ "@nx/node": "18.1.0-beta.4",
38
38
  "@phenomnomnominal/tsquery": "~5.0.1",
39
39
  "tslib": "^2.3.0",
40
- "@nrwl/nest": "18.1.0-beta.2"
40
+ "@nrwl/nest": "18.1.0-beta.4"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toNodeApplicationGeneratorOptions = exports.normalizeOptions = void 0;
4
+ const devkit_1 = require("@nx/devkit");
4
5
  const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
5
6
  const eslint_1 = require("@nx/eslint");
6
7
  async function normalizeOptions(tree, options) {
@@ -14,8 +15,11 @@ async function normalizeOptions(tree, options) {
14
15
  });
15
16
  options.rootProject = appProjectRoot === '.';
16
17
  options.projectNameAndRootFormat = projectNameAndRootFormat;
18
+ const nxJson = (0, devkit_1.readNxJson)(tree);
19
+ const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
20
+ nxJson.useInferencePlugins !== false;
17
21
  return {
18
- addPlugin: process.env.NX_ADD_PLUGINS !== 'false',
22
+ addPlugin,
19
23
  ...options,
20
24
  strict: options.strict ?? false,
21
25
  appProjectName,
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toJsLibraryGeneratorOptions = exports.normalizeOptions = void 0;
4
+ const devkit_1 = require("@nx/devkit");
4
5
  const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
5
6
  const get_npm_scope_1 = require("@nx/js/src/utils/package-json/get-npm-scope");
6
7
  const eslint_1 = require("@nx/eslint");
@@ -13,7 +14,10 @@ async function normalizeOptions(tree, options) {
13
14
  projectNameAndRootFormat: options.projectNameAndRootFormat,
14
15
  callingGenerator: '@nx/nest:library',
15
16
  });
16
- options.addPlugin ??= process.env.NX_ADD_PLUGINS !== 'false';
17
+ const nxJson = (0, devkit_1.readNxJson)(tree);
18
+ const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
19
+ nxJson.useInferencePlugins !== false;
20
+ options.addPlugin ??= addPlugin;
17
21
  const fileName = options.simpleName
18
22
  ? projectNames.projectSimpleName
19
23
  : projectNames.projectFileName;