@nx/detox 23.0.0-beta.7 → 23.0.0-beta.9
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": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.9",
|
|
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": [
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"type": "commonjs",
|
|
29
29
|
"types": "index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nx/devkit": "23.0.0-beta.
|
|
32
|
-
"@nx/jest": "23.0.0-beta.
|
|
33
|
-
"@nx/js": "23.0.0-beta.
|
|
34
|
-
"@nx/eslint": "23.0.0-beta.
|
|
35
|
-
"@nx/react": "23.0.0-beta.
|
|
31
|
+
"@nx/devkit": "23.0.0-beta.9",
|
|
32
|
+
"@nx/jest": "23.0.0-beta.9",
|
|
33
|
+
"@nx/js": "23.0.0-beta.9",
|
|
34
|
+
"@nx/eslint": "23.0.0-beta.9",
|
|
35
|
+
"@nx/react": "23.0.0-beta.9",
|
|
36
36
|
"semver": "^7.6.3",
|
|
37
37
|
"tslib": "^2.3.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"nx": "23.0.0-beta.
|
|
40
|
+
"nx": "23.0.0-beta.9"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"detox": "^20.9.0"
|
|
@@ -10,7 +10,7 @@ function addProject(host, options) {
|
|
|
10
10
|
? p === '@nx/detox/plugin'
|
|
11
11
|
: p.plugin === '@nx/detox/plugin');
|
|
12
12
|
if (!hasPlugin) {
|
|
13
|
-
(0, deprecation_1.
|
|
13
|
+
(0, deprecation_1.warnDetoxExecutorsGenerating)();
|
|
14
14
|
}
|
|
15
15
|
const packageJson = {
|
|
16
16
|
name: options.importPath,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const DETOX_EXECUTORS_DEPRECATION_MESSAGE = "`@nx/detox:build` and `@nx/detox:test` are deprecated and will be removed in Nx v24. Run `nx g @nx/detox:convert-to-inferred` to migrate to the `@nx/detox/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
|
|
2
2
|
export declare function warnDetoxExecutorsDeprecation(): void;
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function warnDetoxExecutorsGenerating(): void;
|
|
4
4
|
//# sourceMappingURL=deprecation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecation.d.ts","sourceRoot":"","sources":["../../../../../packages/detox/src/utils/deprecation.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mCAAmC,wQACuN,CAAC;AAExQ,wBAAgB,6BAA6B,IAAI,IAAI,CAEpD;AAOD,wBAAgB,
|
|
1
|
+
{"version":3,"file":"deprecation.d.ts","sourceRoot":"","sources":["../../../../../packages/detox/src/utils/deprecation.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mCAAmC,wQACuN,CAAC;AAExQ,wBAAgB,6BAA6B,IAAI,IAAI,CAEpD;AAOD,wBAAgB,4BAA4B,IAAI,IAAI,CAInD"}
|
package/src/utils/deprecation.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DETOX_EXECUTORS_DEPRECATION_MESSAGE = void 0;
|
|
4
4
|
exports.warnDetoxExecutorsDeprecation = warnDetoxExecutorsDeprecation;
|
|
5
|
-
exports.
|
|
5
|
+
exports.warnDetoxExecutorsGenerating = warnDetoxExecutorsGenerating;
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
7
7
|
// TODO(v24): Remove the @nx/detox:build and @nx/detox:test executors and the
|
|
8
8
|
// convert-to-inferred generator. The inferred plugin (@nx/detox/plugin) and
|
|
@@ -11,11 +11,11 @@ exports.DETOX_EXECUTORS_DEPRECATION_MESSAGE = '`@nx/detox:build` and `@nx/detox:
|
|
|
11
11
|
function warnDetoxExecutorsDeprecation() {
|
|
12
12
|
devkit_1.logger.warn(exports.DETOX_EXECUTORS_DEPRECATION_MESSAGE);
|
|
13
13
|
}
|
|
14
|
-
// Fired when the @nx/detox:application generator is about to
|
|
14
|
+
// Fired when the @nx/detox:application generator is about to generate
|
|
15
15
|
// build-ios/test-ios/build-android/test-android targets that use the deprecated
|
|
16
16
|
// executors — i.e. when @nx/detox/plugin isn't registered in nx.json. Surfaces
|
|
17
|
-
// the deprecation at
|
|
17
|
+
// the deprecation at generation time rather than only when the user later runs
|
|
18
18
|
// the generated targets.
|
|
19
|
-
function
|
|
20
|
-
devkit_1.logger.warn('
|
|
19
|
+
function warnDetoxExecutorsGenerating() {
|
|
20
|
+
devkit_1.logger.warn('Generating `build-ios`, `test-ios`, `build-android`, and `test-android` targets that use the deprecated `@nx/detox:build` and `@nx/detox:test` executors. These executors will be removed in Nx v24. Run `nx g @nx/detox:convert-to-inferred` next to migrate these targets to the `@nx/detox/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
|
|
21
21
|
}
|