@nx/detox 22.6.4 → 22.6.5
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.6.
|
|
3
|
+
"version": "22.6.5",
|
|
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,16 +27,16 @@
|
|
|
27
27
|
"main": "./index.js",
|
|
28
28
|
"types": "index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@nx/devkit": "22.6.
|
|
31
|
-
"@nx/jest": "22.6.
|
|
32
|
-
"@nx/js": "22.6.
|
|
33
|
-
"@nx/eslint": "22.6.
|
|
34
|
-
"@nx/react": "22.6.
|
|
30
|
+
"@nx/devkit": "22.6.5",
|
|
31
|
+
"@nx/jest": "22.6.5",
|
|
32
|
+
"@nx/js": "22.6.5",
|
|
33
|
+
"@nx/eslint": "22.6.5",
|
|
34
|
+
"@nx/react": "22.6.5",
|
|
35
35
|
"semver": "^7.6.3",
|
|
36
36
|
"tslib": "^2.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"nx": "22.6.
|
|
39
|
+
"nx": "22.6.5"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"detox": "^20.9.0"
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAsBD,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,kBAAkB,CAsBzD,CAAC;AAEF,eAAO,MAAM,aAAa,mCAAc,CAAC"}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -10,7 +10,6 @@ const calculate_hash_for_create_nodes_1 = require("@nx/devkit/src/utils/calculat
|
|
|
10
10
|
const cache_directory_1 = require("nx/src/utils/cache-directory");
|
|
11
11
|
const devkit_internals_1 = require("nx/src/devkit-internals");
|
|
12
12
|
const util_1 = require("@nx/js/src/plugins/typescript/util");
|
|
13
|
-
const pmc = (0, devkit_1.getPackageManagerCommand)();
|
|
14
13
|
function readTargetsCache(cachePath) {
|
|
15
14
|
return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
|
|
16
15
|
}
|
|
@@ -27,8 +26,9 @@ exports.createNodes = [
|
|
|
27
26
|
const optionsHash = (0, devkit_internals_1.hashObject)(options);
|
|
28
27
|
const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, `expo-${optionsHash}.hash`);
|
|
29
28
|
const targetsCache = readTargetsCache(cachePath);
|
|
29
|
+
const pmc = (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(context.workspaceRoot));
|
|
30
30
|
try {
|
|
31
|
-
return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache), configFiles, options, context);
|
|
31
|
+
return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache, pmc), configFiles, options, context);
|
|
32
32
|
}
|
|
33
33
|
finally {
|
|
34
34
|
writeTargetsToCache(cachePath, targetsCache);
|
|
@@ -36,11 +36,11 @@ exports.createNodes = [
|
|
|
36
36
|
},
|
|
37
37
|
];
|
|
38
38
|
exports.createNodesV2 = exports.createNodes;
|
|
39
|
-
async function createNodesInternal(configFile, options, context, targetsCache) {
|
|
39
|
+
async function createNodesInternal(configFile, options, context, targetsCache, pmc) {
|
|
40
40
|
options = normalizeOptions(options);
|
|
41
41
|
const projectRoot = (0, path_1.dirname)(configFile);
|
|
42
42
|
const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
|
|
43
|
-
targetsCache[hash] ??= buildDetoxTargets(projectRoot, options, context);
|
|
43
|
+
targetsCache[hash] ??= buildDetoxTargets(projectRoot, options, context, pmc);
|
|
44
44
|
return {
|
|
45
45
|
projects: {
|
|
46
46
|
[projectRoot]: {
|
|
@@ -49,7 +49,7 @@ async function createNodesInternal(configFile, options, context, targetsCache) {
|
|
|
49
49
|
},
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function buildDetoxTargets(projectRoot, options, context) {
|
|
52
|
+
function buildDetoxTargets(projectRoot, options, context, pmc) {
|
|
53
53
|
const namedInputs = (0, get_named_inputs_1.getNamedInputs)(projectRoot, context);
|
|
54
54
|
const targets = {
|
|
55
55
|
[options.buildTargetName]: {
|