@nx/cypress 19.8.0 → 20.0.0-beta.0
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": "
|
|
3
|
+
"version": "20.0.0-beta.0",
|
|
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": "
|
|
40
|
-
"@nx/eslint": "
|
|
41
|
-
"@nx/js": "
|
|
39
|
+
"@nx/devkit": "20.0.0-beta.0",
|
|
40
|
+
"@nx/eslint": "20.0.0-beta.0",
|
|
41
|
+
"@nx/js": "20.0.0-beta.0",
|
|
42
42
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
43
43
|
"detect-port": "^1.5.1",
|
|
44
44
|
"tslib": "^2.3.0",
|
|
45
|
-
"@nrwl/cypress": "
|
|
45
|
+
"@nrwl/cypress": "20.0.0-beta.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"cypress": ">= 3 < 14"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';
|
|
1
2
|
export declare function getUnscopedLibName(libRoot: string): string;
|
|
2
|
-
export declare function getE2eProjectName(targetProjectName: string, targetLibRoot: string, cypressDirectory?: string): string;
|
|
3
|
+
export declare function getE2eProjectName(targetProjectName: string, targetLibRoot: string, cypressDirectory?: string, nameAndProjectRootFormat?: ProjectNameAndRootFormat): string;
|
|
3
4
|
export declare function filePathPrefix(directory: string): string;
|
|
@@ -7,8 +7,8 @@ const devkit_1 = require("@nx/devkit");
|
|
|
7
7
|
function getUnscopedLibName(libRoot) {
|
|
8
8
|
return libRoot.slice(libRoot.lastIndexOf('/') + 1);
|
|
9
9
|
}
|
|
10
|
-
function getE2eProjectName(targetProjectName, targetLibRoot, cypressDirectory) {
|
|
11
|
-
if (cypressDirectory) {
|
|
10
|
+
function getE2eProjectName(targetProjectName, targetLibRoot, cypressDirectory, nameAndProjectRootFormat = 'as-provided') {
|
|
11
|
+
if (cypressDirectory && nameAndProjectRootFormat !== 'as-provided') {
|
|
12
12
|
return `${filePathPrefix(cypressDirectory)}-${getUnscopedLibName(targetLibRoot)}-e2e`;
|
|
13
13
|
}
|
|
14
14
|
return `${targetProjectName}-e2e`;
|