@nx/cypress 19.2.0-beta.5 → 19.2.0-beta.7
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 +5 -5
- package/src/plugins/plugin.js +3 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/cypress",
|
|
3
|
-
"version": "19.2.0-beta.
|
|
3
|
+
"version": "19.2.0-beta.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Cypress contains executors and generators allowing your workspace to use the powerful Cypress integration testing capabilities.",
|
|
6
6
|
"repository": {
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"migrations": "./migrations.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@nx/devkit": "19.2.0-beta.
|
|
40
|
-
"@nx/eslint": "19.2.0-beta.
|
|
41
|
-
"@nx/js": "19.2.0-beta.
|
|
39
|
+
"@nx/devkit": "19.2.0-beta.7",
|
|
40
|
+
"@nx/eslint": "19.2.0-beta.7",
|
|
41
|
+
"@nx/js": "19.2.0-beta.7",
|
|
42
42
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
43
43
|
"detect-port": "^1.5.1",
|
|
44
44
|
"tslib": "^2.3.0",
|
|
45
|
-
"@nrwl/cypress": "19.2.0-beta.
|
|
45
|
+
"@nrwl/cypress": "19.2.0-beta.7"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"cypress": ">= 3 < 14"
|
package/src/plugins/plugin.js
CHANGED
|
@@ -6,12 +6,12 @@ const path_1 = require("path");
|
|
|
6
6
|
const js_1 = require("@nx/js");
|
|
7
7
|
const get_named_inputs_1 = require("@nx/devkit/src/utils/get-named-inputs");
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
|
-
const workspace_context_1 = require("nx/src/utils/workspace-context");
|
|
10
9
|
const calculate_hash_for_create_nodes_1 = require("@nx/devkit/src/utils/calculate-hash-for-create-nodes");
|
|
11
10
|
const cache_directory_1 = require("nx/src/utils/cache-directory");
|
|
12
11
|
const constants_1 = require("../utils/constants");
|
|
13
12
|
const config_utils_1 = require("@nx/devkit/src/utils/config-utils");
|
|
14
13
|
const devkit_internals_1 = require("nx/src/devkit-internals");
|
|
14
|
+
const workspace_context_1 = require("nx/src/utils/workspace-context");
|
|
15
15
|
function readTargetsCache(cachePath) {
|
|
16
16
|
return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
|
|
17
17
|
}
|
|
@@ -53,9 +53,7 @@ async function createNodesInternal(configFilePath, options, context, targetsCach
|
|
|
53
53
|
!siblingFiles.includes('project.json')) {
|
|
54
54
|
return {};
|
|
55
55
|
}
|
|
56
|
-
const hash = (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [
|
|
57
|
-
(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot)),
|
|
58
|
-
]);
|
|
56
|
+
const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
|
|
59
57
|
targetsCache[hash] ??= await buildCypressTargets(configFilePath, projectRoot, options, context);
|
|
60
58
|
const { targets, metadata } = targetsCache[hash];
|
|
61
59
|
const project = {
|
|
@@ -153,7 +151,7 @@ async function buildCypressTargets(configFilePath, projectRoot, options, context
|
|
|
153
151
|
: Array.isArray(cypressConfig.e2e.excludeSpecPattern)
|
|
154
152
|
? cypressConfig.e2e.excludeSpecPattern.map((p) => (0, path_1.join)(projectRoot, p))
|
|
155
153
|
: [(0, path_1.join)(projectRoot, cypressConfig.e2e.excludeSpecPattern)];
|
|
156
|
-
const specFiles = (0, workspace_context_1.globWithWorkspaceContext)(context.workspaceRoot, specPatterns, excludeSpecPatterns);
|
|
154
|
+
const specFiles = await (0, workspace_context_1.globWithWorkspaceContext)(context.workspaceRoot, specPatterns, excludeSpecPatterns);
|
|
157
155
|
const dependsOn = [];
|
|
158
156
|
const outputs = getOutputs(projectRoot, cypressConfig, 'e2e');
|
|
159
157
|
const inputs = getInputs(namedInputs);
|