@nx/detox 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/migrations.json CHANGED
@@ -108,6 +108,23 @@
108
108
  "alwaysAddToPackageJson": false
109
109
  }
110
110
  }
111
+ },
112
+ "18.1.0": {
113
+ "version": "18.1.0-beta.0",
114
+ "packages": {
115
+ "detox": {
116
+ "version": "~20.18.1",
117
+ "alwaysAddToPackageJson": false
118
+ },
119
+ "@config-plugins/detox": {
120
+ "version": "~7.0.0",
121
+ "alwaysAddToPackageJson": false
122
+ },
123
+ "@testing-library/jest-dom": {
124
+ "version": "~6.4.2",
125
+ "alwaysAddToPackageJson": false
126
+ }
127
+ }
111
128
  }
112
129
  }
113
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/detox",
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 Detox contains executors and generators for allowing your workspace to use the powerful Detox integration testing capabilities.",
6
6
  "keywords": [
@@ -25,13 +25,13 @@
25
25
  "main": "./index.js",
26
26
  "types": "index.d.ts",
27
27
  "dependencies": {
28
- "@nx/devkit": "18.1.0-beta.2",
29
- "@nx/jest": "18.1.0-beta.2",
30
- "@nx/js": "18.1.0-beta.2",
31
- "@nx/eslint": "18.1.0-beta.2",
32
- "@nx/react": "18.1.0-beta.2",
28
+ "@nx/devkit": "18.1.0-beta.3",
29
+ "@nx/jest": "18.1.0-beta.3",
30
+ "@nx/js": "18.1.0-beta.3",
31
+ "@nx/eslint": "18.1.0-beta.3",
32
+ "@nx/react": "18.1.0-beta.3",
33
33
  "tslib": "^2.3.0",
34
- "@nrwl/detox": "18.1.0-beta.2"
34
+ "@nrwl/detox": "18.1.0-beta.3"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "detox": "^20.9.0"
package/plugin.d.ts CHANGED
@@ -1 +1 @@
1
- export { createNodes, DetoxPluginOptions } from './src/plugins/plugin';
1
+ export { createNodes, createDependencies, DetoxPluginOptions, } from './src/plugins/plugin';
package/plugin.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createNodes = void 0;
3
+ exports.createDependencies = exports.createNodes = void 0;
4
4
  var plugin_1 = require("./src/plugins/plugin");
5
5
  Object.defineProperty(exports, "createNodes", { enumerable: true, get: function () { return plugin_1.createNodes; } });
6
+ Object.defineProperty(exports, "createDependencies", { enumerable: true, get: function () { return plugin_1.createDependencies; } });
@@ -11,7 +11,10 @@ async function normalizeOptions(host, options) {
11
11
  projectNameAndRootFormat: options.projectNameAndRootFormat,
12
12
  callingGenerator: '@nx/detox:application',
13
13
  });
14
- options.addPlugin ??= process.env.NX_ADD_PLUGINS !== 'false';
14
+ const nxJson = (0, devkit_1.readNxJson)(host);
15
+ const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
16
+ nxJson.useInferencePlugins !== false;
17
+ options.addPlugin ??= addPlugin;
15
18
  const { fileName: appFileName, className: appClassName } = (0, devkit_1.names)(options.appName || options.appProject);
16
19
  const { root: appRoot } = (0, devkit_1.readProjectConfiguration)(host, (0, devkit_1.names)(options.appProject).fileName);
17
20
  return {
@@ -11,7 +11,10 @@ function detoxInitGenerator(host, schema) {
11
11
  exports.detoxInitGenerator = detoxInitGenerator;
12
12
  async function detoxInitGeneratorInternal(host, schema) {
13
13
  const tasks = [];
14
- schema.addPlugin ??= process.env.NX_ADD_PLUGINS !== 'false';
14
+ const nxJson = (0, devkit_1.readNxJson)(host);
15
+ const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
16
+ nxJson.useInferencePlugins !== false;
17
+ schema.addPlugin ??= addPluginDefault;
15
18
  if (!schema.skipPackageJson) {
16
19
  tasks.push(moveDependency(host));
17
20
  tasks.push(updateDependencies(host, schema));
@@ -1,4 +1,4 @@
1
1
  export declare const nxVersion: any;
2
- export declare const detoxVersion = "^20.16.0";
3
- export declare const testingLibraryJestDom = "6.2.0";
4
- export declare const configPluginsDetoxVersion = "~6.0.0";
2
+ export declare const detoxVersion = "~20.18.1";
3
+ export declare const testingLibraryJestDom = "~6.4.2";
4
+ export declare const configPluginsDetoxVersion = "~7.0.0";
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.configPluginsDetoxVersion = exports.testingLibraryJestDom = exports.detoxVersion = exports.nxVersion = void 0;
4
4
  exports.nxVersion = require('../../package.json').version;
5
- exports.detoxVersion = '^20.16.0';
6
- exports.testingLibraryJestDom = '6.2.0';
7
- exports.configPluginsDetoxVersion = '~6.0.0'; // only required for expo
5
+ exports.detoxVersion = '~20.18.1';
6
+ exports.testingLibraryJestDom = '~6.4.2';
7
+ exports.configPluginsDetoxVersion = '~7.0.0'; // only required for expo