@nx/web 18.1.0-beta.2 → 18.1.0-beta.3

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/web",
3
- "version": "18.1.0-beta.2",
3
+ "version": "18.1.0-beta.3",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Web Components contains generators for managing Web Component applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Cypress, and Storybook.\n\n- Scaffolding for creating buildable libraries that can be published to npm.\n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -34,9 +34,9 @@
34
34
  "detect-port": "^1.5.1",
35
35
  "http-server": "^14.1.0",
36
36
  "tslib": "^2.3.0",
37
- "@nx/devkit": "18.1.0-beta.2",
38
- "@nx/js": "18.1.0-beta.2",
39
- "@nrwl/web": "18.1.0-beta.2"
37
+ "@nx/devkit": "18.1.0-beta.3",
38
+ "@nx/js": "18.1.0-beta.3",
39
+ "@nrwl/web": "18.1.0-beta.3"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
@@ -320,7 +320,10 @@ async function normalizeOptions(host, options) {
320
320
  callingGenerator: '@nx/web:application',
321
321
  });
322
322
  options.projectNameAndRootFormat = projectNameAndRootFormat;
323
- options.addPlugin ??= process.env.NX_ADD_PLUGINS !== 'false';
323
+ const nxJson = (0, devkit_1.readNxJson)(host);
324
+ const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
325
+ nxJson.useInferencePlugins !== false;
326
+ options.addPlugin ??= addPluginDefault;
324
327
  const e2eProjectName = `${appProjectName}-e2e`;
325
328
  const e2eProjectRoot = `${appProjectRoot}-e2e`;
326
329
  const npmScope = (0, get_npm_scope_1.getNpmScope)(host);