@nx/cypress 19.0.2 → 19.0.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/cypress",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.3",
|
|
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": {
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"migrations": "./migrations.json"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nx/devkit": "19.0.
|
|
38
|
-
"@nx/eslint": "19.0.
|
|
39
|
-
"@nx/js": "19.0.
|
|
37
|
+
"@nx/devkit": "19.0.3",
|
|
38
|
+
"@nx/eslint": "19.0.3",
|
|
39
|
+
"@nx/js": "19.0.3",
|
|
40
40
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
41
41
|
"detect-port": "^1.5.1",
|
|
42
42
|
"tslib": "^2.3.0",
|
|
43
|
-
"@nrwl/cypress": "19.0.
|
|
43
|
+
"@nrwl/cypress": "19.0.3"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"cypress": ">= 3 < 14"
|
|
@@ -31,7 +31,7 @@ async function configurationGeneratorInternal(tree, options) {
|
|
|
31
31
|
}));
|
|
32
32
|
}
|
|
33
33
|
else if (opts.addPlugin) {
|
|
34
|
-
await (0, init_1.addPlugin)(tree,
|
|
34
|
+
await (0, init_1.addPlugin)(tree, false);
|
|
35
35
|
}
|
|
36
36
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
37
37
|
const hasPlugin = nxJson.plugins?.some((p) => typeof p === 'string'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GeneratorCallback,
|
|
1
|
+
import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
2
2
|
import { Schema } from './schema';
|
|
3
|
-
export declare function addPlugin(tree: Tree,
|
|
3
|
+
export declare function addPlugin(tree: Tree, updatePackageScripts: boolean): Promise<void>;
|
|
4
4
|
export declare function cypressInitGenerator(tree: Tree, options: Schema): Promise<GeneratorCallback>;
|
|
5
5
|
export declare function cypressInitGeneratorInternal(tree: Tree, options: Schema): Promise<GeneratorCallback>;
|
|
6
6
|
export default cypressInitGenerator;
|
|
@@ -30,8 +30,8 @@ function updateDependencies(tree, options) {
|
|
|
30
30
|
}, undefined, options.keepExistingVersions));
|
|
31
31
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
32
32
|
}
|
|
33
|
-
function addPlugin(tree,
|
|
34
|
-
return (0, add_plugin_1.addPlugin)(tree,
|
|
33
|
+
function addPlugin(tree, updatePackageScripts) {
|
|
34
|
+
return (0, add_plugin_1.addPlugin)(tree, '@nx/cypress/plugin', plugin_1.createNodes, {
|
|
35
35
|
targetName: ['e2e', 'cypress:e2e', 'cypress-e2e'],
|
|
36
36
|
openTargetName: ['open-cypress', 'cypress-open'],
|
|
37
37
|
componentTestingTargetName: [
|
|
@@ -67,7 +67,7 @@ async function cypressInitGeneratorInternal(tree, options) {
|
|
|
67
67
|
process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
68
68
|
nxJson.useInferencePlugins !== false;
|
|
69
69
|
if (options.addPlugin) {
|
|
70
|
-
await addPlugin(tree,
|
|
70
|
+
await addPlugin(tree, options.updatePackageScripts);
|
|
71
71
|
}
|
|
72
72
|
else {
|
|
73
73
|
setupE2ETargetDefaults(tree);
|