@nx/cypress 22.6.3 → 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/cypress",
|
|
3
|
-
"version": "22.6.
|
|
3
|
+
"version": "22.6.5",
|
|
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,9 +36,9 @@
|
|
|
36
36
|
"migrations": "./migrations.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@nx/devkit": "22.6.
|
|
40
|
-
"@nx/eslint": "22.6.
|
|
41
|
-
"@nx/js": "22.6.
|
|
39
|
+
"@nx/devkit": "22.6.5",
|
|
40
|
+
"@nx/eslint": "22.6.5",
|
|
41
|
+
"@nx/js": "22.6.5",
|
|
42
42
|
"@phenomnomnominal/tsquery": "~6.1.4",
|
|
43
43
|
"detect-port": "^1.5.1",
|
|
44
44
|
"semver": "^7.6.3",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"tslib": "^2.3.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"nx": "22.6.
|
|
49
|
+
"nx": "22.6.5"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"cypress": ">= 13 < 16"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/cypress/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAQnB,MAAM,YAAY,CAAC;AAapB,MAAM,WAAW,oBAAoB;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACvC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/cypress/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAQnB,MAAM,YAAY,CAAC;AAapB,MAAM,WAAW,oBAAoB;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACvC;AAcD,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,oBAAoB,CAwB3D,CAAC;AAEF,eAAO,MAAM,aAAa,qCAAc,CAAC"}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -24,15 +24,15 @@ const defaultPatterns = {
|
|
|
24
24
|
excludeSpecPattern: ['/snapshots/*', '/image_snapshots/*'],
|
|
25
25
|
},
|
|
26
26
|
};
|
|
27
|
-
const pmc = (0, devkit_1.getPackageManagerCommand)();
|
|
28
27
|
exports.createNodes = [
|
|
29
28
|
cypressConfigGlob,
|
|
30
29
|
async (configFiles, options, context) => {
|
|
31
30
|
const optionsHash = (0, devkit_internals_1.hashObject)(options);
|
|
32
31
|
const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, `cypress-${optionsHash}.hash`);
|
|
33
32
|
const pluginCache = new plugin_cache_utils_1.PluginCache(cachePath);
|
|
33
|
+
const pmc = (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(context.workspaceRoot));
|
|
34
34
|
try {
|
|
35
|
-
return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, pluginCache), configFiles, options, context);
|
|
35
|
+
return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, pluginCache, pmc), configFiles, options, context);
|
|
36
36
|
}
|
|
37
37
|
finally {
|
|
38
38
|
pluginCache.writeToDisk(cachePath);
|
|
@@ -40,7 +40,7 @@ exports.createNodes = [
|
|
|
40
40
|
},
|
|
41
41
|
];
|
|
42
42
|
exports.createNodesV2 = exports.createNodes;
|
|
43
|
-
async function createNodesInternal(configFilePath, options, context, pluginCache) {
|
|
43
|
+
async function createNodesInternal(configFilePath, options, context, pluginCache, pmc) {
|
|
44
44
|
options = normalizeOptions(options);
|
|
45
45
|
const projectRoot = (0, path_1.dirname)(configFilePath);
|
|
46
46
|
// Do not create a project if package.json and project.json isn't there.
|
|
@@ -51,7 +51,7 @@ async function createNodesInternal(configFilePath, options, context, pluginCache
|
|
|
51
51
|
}
|
|
52
52
|
const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
|
|
53
53
|
if (!pluginCache.has(hash)) {
|
|
54
|
-
pluginCache.set(hash, await buildCypressTargets(configFilePath, projectRoot, options, context));
|
|
54
|
+
pluginCache.set(hash, await buildCypressTargets(configFilePath, projectRoot, options, context, pmc));
|
|
55
55
|
}
|
|
56
56
|
const { targets, metadata } = pluginCache.get(hash);
|
|
57
57
|
const project = {
|
|
@@ -140,7 +140,7 @@ function getOutputs(projectRoot, cypressConfig, testingType) {
|
|
|
140
140
|
}
|
|
141
141
|
return outputs;
|
|
142
142
|
}
|
|
143
|
-
async function buildCypressTargets(configFilePath, projectRoot, options, context) {
|
|
143
|
+
async function buildCypressTargets(configFilePath, projectRoot, options, context, pmc) {
|
|
144
144
|
const cypressConfig = await (0, config_utils_1.loadConfigFile)((0, path_1.join)(context.workspaceRoot, configFilePath));
|
|
145
145
|
const pluginPresetOptions = {
|
|
146
146
|
...cypressConfig.e2e?.[constants_1.NX_PLUGIN_OPTIONS],
|