@nx/detox 0.0.0-pr-28808-bceb02f → 0.0.0-pr-28808-ae8ea8d
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": "0.0.0-pr-28808-
|
|
3
|
+
"version": "0.0.0-pr-28808-ae8ea8d",
|
|
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,11 +27,11 @@
|
|
|
27
27
|
"main": "./index",
|
|
28
28
|
"types": "index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@nx/devkit": "0.0.0-pr-28808-
|
|
31
|
-
"@nx/jest": "0.0.0-pr-28808-
|
|
32
|
-
"@nx/js": "0.0.0-pr-28808-
|
|
33
|
-
"@nx/eslint": "0.0.0-pr-28808-
|
|
34
|
-
"@nx/react": "0.0.0-pr-28808-
|
|
30
|
+
"@nx/devkit": "0.0.0-pr-28808-ae8ea8d",
|
|
31
|
+
"@nx/jest": "0.0.0-pr-28808-ae8ea8d",
|
|
32
|
+
"@nx/js": "0.0.0-pr-28808-ae8ea8d",
|
|
33
|
+
"@nx/eslint": "0.0.0-pr-28808-ae8ea8d",
|
|
34
|
+
"@nx/react": "0.0.0-pr-28808-ae8ea8d",
|
|
35
35
|
"tslib": "^2.3.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
@@ -3,19 +3,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.addProject = addProject;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const get_targets_1 = require("./get-targets");
|
|
6
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
6
7
|
function addProject(host, options) {
|
|
7
8
|
const nxJson = (0, devkit_1.readNxJson)(host);
|
|
8
9
|
const hasPlugin = nxJson.plugins?.some((p) => typeof p === 'string'
|
|
9
10
|
? p === '@nx/detox/plugin'
|
|
10
11
|
: p.plugin === '@nx/detox/plugin');
|
|
11
|
-
(0,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if ((0, ts_solution_setup_1.isUsingTsSolutionSetup)(host)) {
|
|
13
|
+
(0, devkit_1.writeJson)(host, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'package.json'), {
|
|
14
|
+
name: options.e2eProjectName,
|
|
15
|
+
version: '0.0.1',
|
|
16
|
+
private: true,
|
|
17
|
+
nx: {
|
|
18
|
+
name: options.e2eProjectName,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
(0, devkit_1.addProjectConfiguration)(host, options.e2eProjectName, {
|
|
24
|
+
root: options.e2eProjectRoot,
|
|
25
|
+
sourceRoot: `${options.e2eProjectRoot}/src`,
|
|
26
|
+
projectType: 'application',
|
|
27
|
+
targets: hasPlugin ? {} : getTargets(options),
|
|
28
|
+
tags: [],
|
|
29
|
+
implicitDependencies: [options.appProject],
|
|
30
|
+
});
|
|
31
|
+
}
|
|
19
32
|
}
|
|
20
33
|
function getTargets(options) {
|
|
21
34
|
const targets = {};
|