@nx/detox 22.0.0-beta.2 → 22.0.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/detox",
3
- "version": "22.0.0-beta.2",
3
+ "version": "22.0.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": [
@@ -27,15 +27,15 @@
27
27
  "main": "./index.js",
28
28
  "types": "index.d.ts",
29
29
  "dependencies": {
30
- "@nx/devkit": "22.0.0-beta.2",
31
- "@nx/jest": "22.0.0-beta.2",
32
- "@nx/js": "22.0.0-beta.2",
33
- "@nx/eslint": "22.0.0-beta.2",
34
- "@nx/react": "22.0.0-beta.2",
30
+ "@nx/devkit": "22.0.0-beta.3",
31
+ "@nx/jest": "22.0.0-beta.3",
32
+ "@nx/js": "22.0.0-beta.3",
33
+ "@nx/eslint": "22.0.0-beta.3",
34
+ "@nx/react": "22.0.0-beta.3",
35
35
  "tslib": "^2.3.0"
36
36
  },
37
37
  "devDependencies": {
38
- "nx": "22.0.0-beta.2"
38
+ "nx": "22.0.0-beta.3"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "detox": "^20.9.0"
@@ -1,4 +1,4 @@
1
- import { CreateNodes, CreateNodesV2 } from '@nx/devkit';
1
+ import { CreateNodesV2 } from '@nx/devkit';
2
2
  export interface DetoxPluginOptions {
3
3
  buildTargetName?: string;
4
4
  startTargetName?: string;
@@ -6,6 +6,6 @@ export interface DetoxPluginOptions {
6
6
  buildDepsTargetName?: string;
7
7
  watchDepsTargetName?: string;
8
8
  }
9
+ export declare const createNodes: CreateNodesV2<DetoxPluginOptions>;
9
10
  export declare const createNodesV2: CreateNodesV2<DetoxPluginOptions>;
10
- export declare const createNodes: CreateNodes<DetoxPluginOptions>;
11
11
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/detox/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAIX,aAAa,EAOd,MAAM,YAAY,CAAC;AAUpB,MAAM,WAAW,kBAAkB;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAwBD,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,kBAAkB,CAmB3D,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,kBAAkB,CAkBvD,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/detox/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EAOd,MAAM,YAAY,CAAC;AAUpB,MAAM,WAAW,kBAAkB;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAwBD,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,kBAAkB,CAmBzD,CAAC;AAEF,eAAO,MAAM,aAAa,mCAAc,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createNodes = exports.createNodesV2 = void 0;
3
+ exports.createNodesV2 = exports.createNodes = void 0;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const path_1 = require("path");
6
6
  const js_1 = require("@nx/js");
@@ -21,7 +21,7 @@ function writeTargetsToCache(cachePath, targetsCache) {
21
21
  targetsCache,
22
22
  });
23
23
  }
24
- exports.createNodesV2 = [
24
+ exports.createNodes = [
25
25
  '**/{detox.config,.detoxrc}.{json,js}',
26
26
  async (configFiles, options, context) => {
27
27
  const optionsHash = (0, devkit_internals_1.hashObject)(options);
@@ -35,17 +35,7 @@ exports.createNodesV2 = [
35
35
  }
36
36
  },
37
37
  ];
38
- exports.createNodes = [
39
- '**/{detox.config,.detoxrc}.{json,js}',
40
- async (configFilePath, options, context) => {
41
- const optionsHash = (0, devkit_internals_1.hashObject)(options);
42
- const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, `detox-${optionsHash}.hash`);
43
- const targetsCache = readTargetsCache(cachePath);
44
- const result = await createNodesInternal(configFilePath, options, context, targetsCache);
45
- writeTargetsToCache(cachePath, targetsCache);
46
- return result;
47
- },
48
- ];
38
+ exports.createNodesV2 = exports.createNodes;
49
39
  async function createNodesInternal(configFile, options, context, targetsCache) {
50
40
  options = normalizeOptions(options);
51
41
  const projectRoot = (0, path_1.dirname)(configFile);