@nx/playwright 18.1.0-canary.20240229-f6a183c → 18.1.0-canary.20240302-8bde48f

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/playwright",
3
- "version": "18.1.0-canary.20240229-f6a183c",
3
+ "version": "18.1.0-canary.20240302-8bde48f",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -33,9 +33,9 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@phenomnomnominal/tsquery": "~5.0.1",
36
- "@nx/devkit": "18.1.0-canary.20240229-f6a183c",
37
- "@nx/eslint": "18.1.0-canary.20240229-f6a183c",
38
- "@nx/js": "18.1.0-canary.20240229-f6a183c",
36
+ "@nx/devkit": "18.1.0-canary.20240302-8bde48f",
37
+ "@nx/eslint": "18.1.0-canary.20240302-8bde48f",
38
+ "@nx/js": "18.1.0-canary.20240302-8bde48f",
39
39
  "tslib": "^2.3.0",
40
40
  "minimatch": "9.0.3"
41
41
  },
@@ -14,7 +14,10 @@ function configurationGenerator(tree, options) {
14
14
  }
15
15
  exports.configurationGenerator = configurationGenerator;
16
16
  async function configurationGeneratorInternal(tree, options) {
17
- options.addPlugin ??= process.env.NX_ADD_PLUGINS !== 'false';
17
+ const nxJson = (0, devkit_1.readNxJson)(tree);
18
+ options.addPlugin ??=
19
+ process.env.NX_ADD_PLUGINS !== 'false' &&
20
+ nxJson.useInferencePlugins !== false;
18
21
  const tasks = [];
19
22
  tasks.push(await (0, init_1.initGenerator)(tree, {
20
23
  skipFormat: true,
@@ -11,7 +11,10 @@ function initGenerator(tree, options) {
11
11
  exports.initGenerator = initGenerator;
12
12
  async function initGeneratorInternal(tree, options) {
13
13
  const tasks = [];
14
- options.addPlugin ??= process.env.NX_ADD_PLUGINS !== 'false';
14
+ const nxJson = (0, devkit_1.readNxJson)(tree);
15
+ const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
16
+ nxJson.useInferencePlugins !== false;
17
+ options.addPlugin ??= addPluginDefault;
15
18
  if (!options.skipPackageJson) {
16
19
  tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
17
20
  '@nx/playwright': versions_1.nxVersion,