@nx/detox 23.0.0-beta.24 → 23.0.0-beta.25

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.
Files changed (92) hide show
  1. package/{index.d.ts → dist/index.d.ts} +0 -1
  2. package/{plugin.d.ts → dist/plugin.d.ts} +0 -1
  3. package/{src → dist/src}/executors/build/build.impl.d.ts +0 -1
  4. package/{src → dist/src}/executors/test/test.impl.d.ts +0 -1
  5. package/{src → dist/src}/generators/application/application.d.ts +0 -1
  6. package/{src → dist/src}/generators/application/application.js +2 -0
  7. package/{src → dist/src}/generators/application/lib/add-git-ignore-entry.d.ts +0 -1
  8. package/{src → dist/src}/generators/application/lib/add-linting.d.ts +0 -1
  9. package/{src → dist/src}/generators/application/lib/add-linting.js +1 -1
  10. package/{src → dist/src}/generators/application/lib/add-project.d.ts +0 -1
  11. package/{src → dist/src}/generators/application/lib/create-files.d.ts +0 -1
  12. package/{src → dist/src}/generators/application/lib/ensure-dependencies.d.ts +0 -1
  13. package/{src → dist/src}/generators/application/lib/ensure-dependencies.js +1 -1
  14. package/{src → dist/src}/generators/application/lib/get-targets.d.ts +0 -1
  15. package/{src → dist/src}/generators/application/lib/normalize-options.d.ts +0 -1
  16. package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.d.ts +0 -1
  17. package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.js +2 -0
  18. package/{src → dist/src}/generators/convert-to-inferred/lib/post-target-transformer.d.ts +0 -1
  19. package/{src → dist/src}/generators/convert-to-inferred/lib/process-build-options.d.ts +0 -1
  20. package/{src → dist/src}/generators/convert-to-inferred/lib/process-test-options.d.ts +0 -1
  21. package/{src → dist/src}/generators/init/init.d.ts +0 -1
  22. package/{src → dist/src}/generators/init/init.js +2 -1
  23. package/{src → dist/src}/generators/init/schema.json +1 -1
  24. package/{src → dist/src}/migrations/update-22-0-0/remove-config-plugins-detox-for-expo-54.d.ts +0 -1
  25. package/{src → dist/src}/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +0 -1
  26. package/{src → dist/src}/plugins/plugin.d.ts +0 -1
  27. package/{src → dist/src}/utils/deprecation.d.ts +0 -1
  28. package/{src → dist/src}/utils/expo-version-utils.d.ts +0 -1
  29. package/{src → dist/src}/utils/versions.d.ts +3 -1
  30. package/dist/src/utils/versions.js +16 -0
  31. package/executors.json +4 -4
  32. package/generators.json +6 -6
  33. package/migrations.json +11 -29
  34. package/package.json +48 -12
  35. package/index.d.ts.map +0 -1
  36. package/plugin.d.ts.map +0 -1
  37. package/src/executors/build/build.impl.d.ts.map +0 -1
  38. package/src/executors/test/test.impl.d.ts.map +0 -1
  39. package/src/generators/application/application.d.ts.map +0 -1
  40. package/src/generators/application/lib/add-git-ignore-entry.d.ts.map +0 -1
  41. package/src/generators/application/lib/add-linting.d.ts.map +0 -1
  42. package/src/generators/application/lib/add-project.d.ts.map +0 -1
  43. package/src/generators/application/lib/create-files.d.ts.map +0 -1
  44. package/src/generators/application/lib/ensure-dependencies.d.ts.map +0 -1
  45. package/src/generators/application/lib/get-targets.d.ts.map +0 -1
  46. package/src/generators/application/lib/normalize-options.d.ts.map +0 -1
  47. package/src/generators/convert-to-inferred/convert-to-inferred.d.ts.map +0 -1
  48. package/src/generators/convert-to-inferred/lib/post-target-transformer.d.ts.map +0 -1
  49. package/src/generators/convert-to-inferred/lib/process-build-options.d.ts.map +0 -1
  50. package/src/generators/convert-to-inferred/lib/process-test-options.d.ts.map +0 -1
  51. package/src/generators/init/init.d.ts.map +0 -1
  52. package/src/migrations/update-22-0-0/remove-config-plugins-detox-for-expo-54.d.ts.map +0 -1
  53. package/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts.map +0 -1
  54. package/src/plugins/plugin.d.ts.map +0 -1
  55. package/src/utils/deprecation.d.ts.map +0 -1
  56. package/src/utils/expo-version-utils.d.ts.map +0 -1
  57. package/src/utils/versions.d.ts.map +0 -1
  58. package/src/utils/versions.js +0 -7
  59. /package/{LICENSE → dist/LICENSE} +0 -0
  60. /package/{index.js → dist/index.js} +0 -0
  61. /package/{plugin.js → dist/plugin.js} +0 -0
  62. /package/{src → dist/src}/executors/build/build.impl.js +0 -0
  63. /package/{src → dist/src}/executors/build/schema.d.ts +0 -0
  64. /package/{src → dist/src}/executors/build/schema.json +0 -0
  65. /package/{src → dist/src}/executors/test/schema.d.ts +0 -0
  66. /package/{src → dist/src}/executors/test/schema.json +0 -0
  67. /package/{src → dist/src}/executors/test/test.impl.js +0 -0
  68. /package/{src → dist/src}/generators/application/files/app/.babelrc.template +0 -0
  69. /package/{src → dist/src}/generators/application/files/app/.detoxrc.json.template +0 -0
  70. /package/{src → dist/src}/generators/application/files/app/src/app.spec.ts.template +0 -0
  71. /package/{src → dist/src}/generators/application/files/app/test-setup.ts.template +0 -0
  72. /package/{src → dist/src}/generators/application/files/non-ts-solution/jest.config.json.template +0 -0
  73. /package/{src → dist/src}/generators/application/files/non-ts-solution/tsconfig.e2e.json.template +0 -0
  74. /package/{src → dist/src}/generators/application/files/non-ts-solution/tsconfig.json.template +0 -0
  75. /package/{src → dist/src}/generators/application/files/ts-solution/jest.config.cts.template +0 -0
  76. /package/{src → dist/src}/generators/application/lib/add-git-ignore-entry.js +0 -0
  77. /package/{src → dist/src}/generators/application/lib/add-project.js +0 -0
  78. /package/{src → dist/src}/generators/application/lib/create-files.js +0 -0
  79. /package/{src → dist/src}/generators/application/lib/get-targets.js +0 -0
  80. /package/{src → dist/src}/generators/application/lib/normalize-options.js +0 -0
  81. /package/{src → dist/src}/generators/application/schema.d.ts +0 -0
  82. /package/{src → dist/src}/generators/application/schema.json +0 -0
  83. /package/{src → dist/src}/generators/convert-to-inferred/lib/post-target-transformer.js +0 -0
  84. /package/{src → dist/src}/generators/convert-to-inferred/lib/process-build-options.js +0 -0
  85. /package/{src → dist/src}/generators/convert-to-inferred/lib/process-test-options.js +0 -0
  86. /package/{src → dist/src}/generators/convert-to-inferred/schema.json +0 -0
  87. /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
  88. /package/{src → dist/src}/migrations/update-22-0-0/remove-config-plugins-detox-for-expo-54.js +0 -0
  89. /package/{src → dist/src}/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +0 -0
  90. /package/{src → dist/src}/plugins/plugin.js +0 -0
  91. /package/{src → dist/src}/utils/deprecation.js +0 -0
  92. /package/{src → dist/src}/utils/expo-version-utils.js +0 -0
@@ -1,3 +1,2 @@
1
1
  export { detoxInitGenerator } from './src/generators/init/init';
2
2
  export { detoxApplicationGenerator } from './src/generators/application/application';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1 @@
1
1
  export { createNodes, createNodesV2, DetoxPluginOptions, } from './src/plugins/plugin';
2
- //# sourceMappingURL=plugin.d.ts.map
@@ -5,4 +5,3 @@ export interface DetoxBuildOutput {
5
5
  }
6
6
  export default function detoxBuildExecutor(options: DetoxBuildOptions, context: ExecutorContext): AsyncGenerator<DetoxBuildOutput>;
7
7
  export declare function runCliBuild(workspaceRoot: string, projectRoot: string, options: DetoxBuildOptions): Promise<unknown>;
8
- //# sourceMappingURL=build.impl.d.ts.map
@@ -4,4 +4,3 @@ export interface DetoxTestOutput {
4
4
  success: boolean;
5
5
  }
6
6
  export default function detoxTestExecutor(options: DetoxTestOptions, context: ExecutorContext): AsyncGenerator<DetoxTestOutput>;
7
- //# sourceMappingURL=test.impl.d.ts.map
@@ -3,4 +3,3 @@ import { Schema } from './schema';
3
3
  export declare function detoxApplicationGenerator(host: Tree, schema: Schema): Promise<import("@nx/devkit").GeneratorCallback>;
4
4
  export declare function detoxApplicationGeneratorInternal(host: Tree, schema: Schema): Promise<import("@nx/devkit").GeneratorCallback>;
5
5
  export default detoxApplicationGenerator;
6
- //# sourceMappingURL=application.d.ts.map
@@ -14,6 +14,7 @@ const normalize_options_1 = require("./lib/normalize-options");
14
14
  const ensure_dependencies_1 = require("./lib/ensure-dependencies");
15
15
  const internal_1 = require("@nx/js/internal");
16
16
  const expo_version_utils_1 = require("../../utils/expo-version-utils");
17
+ const versions_1 = require("../../utils/versions");
17
18
  async function detoxApplicationGenerator(host, schema) {
18
19
  return await detoxApplicationGeneratorInternal(host, {
19
20
  addPlugin: false,
@@ -22,6 +23,7 @@ async function detoxApplicationGenerator(host, schema) {
22
23
  });
23
24
  }
24
25
  async function detoxApplicationGeneratorInternal(host, schema) {
26
+ (0, versions_1.assertSupportedDetoxVersion)(host);
25
27
  const addTsPlugin = (0, internal_1.shouldConfigureTsSolutionSetup)(host, schema.addPlugin);
26
28
  const jsInitTask = await (0, js_1.initGenerator)(host, {
27
29
  addTsPlugin,
@@ -1,4 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  import { NormalizedSchema } from './normalize-options';
3
3
  export declare function addGitIgnoreEntry(host: Tree, options: NormalizedSchema): void;
4
- //# sourceMappingURL=add-git-ignore-entry.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { GeneratorCallback, Tree } from '@nx/devkit';
2
2
  import { NormalizedSchema } from './normalize-options';
3
3
  export declare function addLinting(host: Tree, options: NormalizedSchema): Promise<GeneratorCallback>;
4
- //# sourceMappingURL=add-linting.d.ts.map
@@ -34,7 +34,7 @@ async function addLinting(host, options) {
34
34
  tasks.push(addExtendsTask);
35
35
  }
36
36
  }
37
- const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, react_1.extraEslintDependencies.dependencies, react_1.extraEslintDependencies.devDependencies);
37
+ const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, react_1.extraEslintDependencies.dependencies, react_1.extraEslintDependencies.devDependencies, undefined, true);
38
38
  tasks.push(installTask);
39
39
  return (0, devkit_1.runTasksInSerial)(...tasks);
40
40
  }
@@ -1,4 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  import { NormalizedSchema } from './normalize-options';
3
3
  export declare function addProject(host: Tree, options: NormalizedSchema): void;
4
- //# sourceMappingURL=add-project.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  import { NormalizedSchema } from './normalize-options';
3
3
  export declare function createFiles(host: Tree, options: NormalizedSchema): void;
4
- //# sourceMappingURL=create-files.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { type Tree } from '@nx/devkit';
2
2
  import type { NormalizedSchema } from './normalize-options';
3
3
  export declare function ensureDependencies(tree: Tree, options: NormalizedSchema): import("@nx/devkit").GeneratorCallback;
4
- //# sourceMappingURL=ensure-dependencies.d.ts.map
@@ -14,5 +14,5 @@ function ensureDependencies(tree, options) {
14
14
  if (options.framework === 'expo') {
15
15
  devDependencies['@config-plugins/detox'] = versions_1.configPluginsDetoxVersion;
16
16
  }
17
- return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies);
17
+ return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies, undefined, true);
18
18
  }
@@ -49,4 +49,3 @@ export declare function expoTestTarget(platform: 'ios.sim' | 'android.emu', e2eN
49
49
  };
50
50
  };
51
51
  };
52
- //# sourceMappingURL=get-targets.d.ts.map
@@ -11,4 +11,3 @@ export interface NormalizedSchema extends Omit<Schema, 'e2eName'> {
11
11
  isUsingTsSolutionConfig?: boolean;
12
12
  }
13
13
  export declare function normalizeOptions(host: Tree, options: Schema): Promise<NormalizedSchema>;
14
- //# sourceMappingURL=normalize-options.d.ts.map
@@ -5,4 +5,3 @@ interface Schema {
5
5
  }
6
6
  export declare function convertToInferred(tree: Tree, options: Schema): Promise<() => void>;
7
7
  export default convertToInferred;
8
- //# sourceMappingURL=convert-to-inferred.d.ts.map
@@ -4,10 +4,12 @@ exports.convertToInferred = convertToInferred;
4
4
  const internal_1 = require("@nx/devkit/internal");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const plugin_1 = require("../../plugins/plugin");
7
+ const versions_1 = require("../../utils/versions");
7
8
  const process_build_options_1 = require("./lib/process-build-options");
8
9
  const post_target_transformer_1 = require("./lib/post-target-transformer");
9
10
  const process_test_options_1 = require("./lib/process-test-options");
10
11
  async function convertToInferred(tree, options) {
12
+ (0, versions_1.assertSupportedDetoxVersion)(tree);
11
13
  const projectGraph = await (0, devkit_1.createProjectGraphAsync)();
12
14
  const migrationLogs = new internal_1.AggregatedLog();
13
15
  const migratedProjects = await (0, internal_1.migrateProjectExecutorsToPlugin)(tree, projectGraph, '@nx/detox/plugin', plugin_1.createNodesV2, {
@@ -4,4 +4,3 @@ export declare function postTargetTransformer(migrationLogs: AggregatedLog, proc
4
4
  projectName: string;
5
5
  root: string;
6
6
  }, inferredTargetConfiguration: TargetConfiguration) => TargetConfiguration<any>;
7
- //# sourceMappingURL=post-target-transformer.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { type TargetConfiguration, type Tree } from '@nx/devkit';
2
2
  import type { AggregatedLog } from '@nx/devkit/internal';
3
3
  export declare function processBuildOptions(_tree: Tree, options: any, projectName: string, _projectRoot: string, target: TargetConfiguration | undefined, _migrationLogs: AggregatedLog): void;
4
- //# sourceMappingURL=process-build-options.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { type TargetConfiguration, type Tree } from '@nx/devkit';
2
2
  import type { AggregatedLog } from '@nx/devkit/internal';
3
3
  export declare function processTestOptions(_tree: Tree, options: any, projectName: string, _projectRoot: string, target: TargetConfiguration | undefined, migrationLogs: AggregatedLog): void;
4
- //# sourceMappingURL=process-test-options.d.ts.map
@@ -4,4 +4,3 @@ export declare function detoxInitGenerator(host: Tree, schema: Schema): Promise<
4
4
  export declare function detoxInitGeneratorInternal(host: Tree, schema: Schema): Promise<GeneratorCallback>;
5
5
  export declare function updateDependencies(host: Tree, schema: Schema): GeneratorCallback;
6
6
  export default detoxInitGenerator;
7
- //# sourceMappingURL=init.d.ts.map
@@ -11,6 +11,7 @@ function detoxInitGenerator(host, schema) {
11
11
  return detoxInitGeneratorInternal(host, { addPlugin: false, ...schema });
12
12
  }
13
13
  async function detoxInitGeneratorInternal(host, schema) {
14
+ (0, versions_1.assertSupportedDetoxVersion)(host);
14
15
  const tasks = [];
15
16
  const nxJson = (0, devkit_1.readNxJson)(host);
16
17
  const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
@@ -46,7 +47,7 @@ function updateDependencies(host, schema) {
46
47
  return (0, devkit_1.addDependenciesToPackageJson)(host, {}, {
47
48
  '@nx/detox': versions_1.nxVersion,
48
49
  detox: versions_1.detoxVersion,
49
- }, undefined, schema.keepExistingVersions);
50
+ }, undefined, schema.keepExistingVersions ?? true);
50
51
  }
51
52
  function moveDependency(host) {
52
53
  return (0, devkit_1.removeDependenciesFromPackageJson)(host, ['@nx/detox'], []);
@@ -20,7 +20,7 @@
20
20
  "type": "boolean",
21
21
  "x-priority": "internal",
22
22
  "description": "Keep existing dependencies versions",
23
- "default": false
23
+ "default": true
24
24
  },
25
25
  "updatePackageScripts": {
26
26
  "type": "boolean",
@@ -9,4 +9,3 @@ import { Tree } from '@nx/devkit';
9
9
  * using Expo 54 or above.
10
10
  */
11
11
  export default function update(tree: Tree): Promise<void>;
12
- //# sourceMappingURL=remove-config-plugins-detox-for-expo-54.d.ts.map
@@ -7,4 +7,3 @@ export default function migrateCreateNodesV2ToCreateNodes(tree: Tree): Promise<v
7
7
  * any `type` modifier, and any default import are left untouched.
8
8
  */
9
9
  export declare function rewriteCreateNodesV2Imports(source: string, specifiers: ReadonlySet<string>): string;
10
- //# sourceMappingURL=migrate-create-nodes-v2-to-create-nodes.d.ts.map
@@ -8,4 +8,3 @@ export interface DetoxPluginOptions {
8
8
  }
9
9
  export declare const createNodes: CreateNodes<DetoxPluginOptions>;
10
10
  export declare const createNodesV2: CreateNodes<DetoxPluginOptions>;
11
- //# sourceMappingURL=plugin.d.ts.map
@@ -1,4 +1,3 @@
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
3
  export declare function warnDetoxExecutorsGenerating(): void;
4
- //# sourceMappingURL=deprecation.d.ts.map
@@ -7,4 +7,3 @@ export declare function getInstalledExpoVersion(tree: Tree): string | null;
7
7
  * Check if the workspace is using Expo v54 or above.
8
8
  */
9
9
  export declare function isExpoV54OrAbove(tree: Tree): boolean;
10
- //# sourceMappingURL=expo-version-utils.d.ts.map
@@ -1,5 +1,7 @@
1
+ import { type Tree } from '@nx/devkit';
1
2
  export declare const nxVersion: any;
3
+ export declare const minSupportedDetoxVersion = "20.0.0";
4
+ export declare function assertSupportedDetoxVersion(tree: Tree): void;
2
5
  export declare const detoxVersion = "~20.43.0";
3
6
  export declare const testingLibraryJestDom = "~6.9.1";
4
7
  export declare const configPluginsDetoxVersion = "~11.0.0";
5
- //# sourceMappingURL=versions.d.ts.map
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.configPluginsDetoxVersion = exports.testingLibraryJestDom = exports.detoxVersion = exports.minSupportedDetoxVersion = exports.nxVersion = void 0;
4
+ exports.assertSupportedDetoxVersion = assertSupportedDetoxVersion;
5
+ const path_1 = require("path");
6
+ const internal_1 = require("@nx/devkit/internal");
7
+ exports.nxVersion = require((0, path_1.join)('@nx/detox', 'package.json')).version;
8
+ // Detox's only maintained major is 20.x; v19 has had no upstream patches since
9
+ // detox@20 (2022-11-10). The plugin is v20-only.
10
+ exports.minSupportedDetoxVersion = '20.0.0';
11
+ function assertSupportedDetoxVersion(tree) {
12
+ (0, internal_1.assertSupportedPackageVersion)(tree, 'detox', exports.minSupportedDetoxVersion);
13
+ }
14
+ exports.detoxVersion = '~20.43.0';
15
+ exports.testingLibraryJestDom = '~6.9.1';
16
+ exports.configPluginsDetoxVersion = '~11.0.0'; // only required for expo
package/executors.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "executors": {
3
3
  "build": {
4
- "implementation": "./src/executors/build/build.impl",
5
- "schema": "./src/executors/build/schema.json",
4
+ "implementation": "./dist/src/executors/build/build.impl",
5
+ "schema": "./dist/src/executors/build/schema.json",
6
6
  "description": "Run the command defined in build property of the specified configuration."
7
7
  },
8
8
  "test": {
9
- "implementation": "./src/executors/test/test.impl",
10
- "schema": "./src/executors/test/schema.json",
9
+ "implementation": "./dist/src/executors/test/test.impl",
10
+ "schema": "./dist/src/executors/test/schema.json",
11
11
  "description": "Initiating your detox test suite."
12
12
  }
13
13
  }
package/generators.json CHANGED
@@ -4,21 +4,21 @@
4
4
  "extends": ["@nx/workspace"],
5
5
  "generators": {
6
6
  "init": {
7
- "factory": "./src/generators/init/init#detoxInitGeneratorInternal",
8
- "schema": "./src/generators/init/schema.json",
7
+ "factory": "./dist/src/generators/init/init#detoxInitGeneratorInternal",
8
+ "schema": "./dist/src/generators/init/schema.json",
9
9
  "description": "Initialize the `@nx/detox` plugin.",
10
10
  "hidden": true
11
11
  },
12
12
  "application": {
13
- "factory": "./src/generators/application/application#detoxApplicationGeneratorInternal",
14
- "schema": "./src/generators/application/schema.json",
13
+ "factory": "./dist/src/generators/application/application#detoxApplicationGeneratorInternal",
14
+ "schema": "./dist/src/generators/application/schema.json",
15
15
  "aliases": ["app"],
16
16
  "x-type": "application",
17
17
  "description": "Create a Detox application."
18
18
  },
19
19
  "convert-to-inferred": {
20
- "factory": "./src/generators/convert-to-inferred/convert-to-inferred",
21
- "schema": "./src/generators/convert-to-inferred/schema.json",
20
+ "factory": "./dist/src/generators/convert-to-inferred/convert-to-inferred",
21
+ "schema": "./dist/src/generators/convert-to-inferred/schema.json",
22
22
  "description": "Convert existing Detox project(s) using `@nx/detox:*` executors to use `@nx/detox/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target."
23
23
  }
24
24
  }
package/migrations.json CHANGED
@@ -7,56 +7,38 @@
7
7
  "version": "22.2.0-beta.2",
8
8
  "cli": "nx",
9
9
  "description": "Remove @config-plugins/detox for Expo 54+ projects (package discontinued)",
10
- "factory": "./src/migrations/update-22-0-0/remove-config-plugins-detox-for-expo-54"
10
+ "factory": "./dist/src/migrations/update-22-0-0/remove-config-plugins-detox-for-expo-54"
11
11
  },
12
12
  "update-23-0-0-migrate-create-nodes-v2-import": {
13
13
  "version": "23.0.0-beta.24",
14
14
  "description": "Rename imports of `createNodesV2` from `@nx/detox/plugin` to the canonical `createNodes` export.",
15
- "implementation": "./src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes",
16
- "documentation": "./src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md"
15
+ "implementation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes",
16
+ "documentation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md"
17
17
  }
18
18
  },
19
19
  "packageJsonUpdates": {
20
- "20.3.0": {
21
- "version": "20.3.0-beta.0",
20
+ "22.0.0": {
21
+ "version": "22.0.0-beta.5",
22
22
  "packages": {
23
23
  "detox": {
24
- "version": "~20.28.0",
24
+ "version": "~20.43.0",
25
25
  "alwaysAddToPackageJson": false
26
26
  },
27
27
  "@testing-library/jest-dom": {
28
- "version": "~6.6.3",
29
- "alwaysAddToPackageJson": false
30
- }
31
- }
32
- },
33
- "20.4.0": {
34
- "version": "20.4.0-beta.2",
35
- "packages": {
36
- "detox": {
37
- "version": "~20.31.0",
38
- "alwaysAddToPackageJson": false
39
- },
40
- "@config-plugins/detox": {
41
- "version": "~9.0.0",
28
+ "version": "~6.9.1",
42
29
  "alwaysAddToPackageJson": false
43
30
  }
44
31
  }
45
32
  },
46
- "22.0.0": {
33
+ "22.0.0-config-plugins-detox": {
47
34
  "version": "22.0.0-beta.5",
35
+ "requires": {
36
+ "expo": ">=53.0.0 <54.0.0"
37
+ },
48
38
  "packages": {
49
- "detox": {
50
- "version": "~20.43.0",
51
- "alwaysAddToPackageJson": false
52
- },
53
39
  "@config-plugins/detox": {
54
40
  "version": "~11.0.0",
55
41
  "alwaysAddToPackageJson": false
56
- },
57
- "@testing-library/jest-dom": {
58
- "version": "~6.9.1",
59
- "alwaysAddToPackageJson": false
60
42
  }
61
43
  }
62
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/detox",
3
- "version": "23.0.0-beta.24",
3
+ "version": "23.0.0-beta.25",
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": [
@@ -24,31 +24,67 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "author": "Victor Savkin",
27
- "main": "./index.js",
27
+ "main": "./dist/index.js",
28
28
  "type": "commonjs",
29
- "types": "index.d.ts",
29
+ "types": "./dist/index.d.ts",
30
+ "files": [
31
+ "dist",
32
+ "!dist/tsconfig.tsbuildinfo",
33
+ "migrations.json",
34
+ "executors.json",
35
+ "generators.json"
36
+ ],
30
37
  "dependencies": {
31
- "@nx/devkit": "23.0.0-beta.24",
32
- "@nx/jest": "23.0.0-beta.24",
33
- "@nx/js": "23.0.0-beta.24",
34
- "@nx/eslint": "23.0.0-beta.24",
35
- "@nx/react": "23.0.0-beta.24",
36
38
  "semver": "^7.6.3",
37
- "tslib": "^2.3.0"
39
+ "tslib": "^2.3.0",
40
+ "@nx/devkit": "23.0.0-beta.25",
41
+ "@nx/jest": "23.0.0-beta.25",
42
+ "@nx/js": "23.0.0-beta.25",
43
+ "@nx/eslint": "23.0.0-beta.25",
44
+ "@nx/react": "23.0.0-beta.25"
38
45
  },
39
46
  "devDependencies": {
40
- "nx": "23.0.0-beta.24"
47
+ "nx": "23.0.0-beta.25"
41
48
  },
42
49
  "peerDependencies": {
43
- "detox": "^20.9.0"
50
+ "detox": "^20.0.0"
51
+ },
52
+ "peerDependenciesMeta": {
53
+ "detox": {
54
+ "optional": true
55
+ }
44
56
  },
45
57
  "executors": "./executors.json",
46
58
  "ng-update": {
47
59
  "requirements": {},
48
- "migrations": "./migrations.json"
60
+ "migrations": "./migrations.json",
61
+ "supportsOptionalUpdates": true
49
62
  },
50
63
  "generators": "./generators.json",
51
64
  "publishConfig": {
52
65
  "access": "public"
66
+ },
67
+ "typesVersions": {
68
+ "*": {
69
+ "plugin": [
70
+ "dist/plugin.d.ts"
71
+ ]
72
+ }
73
+ },
74
+ "exports": {
75
+ ".": {
76
+ "@nx/nx-source": "./index.ts",
77
+ "types": "./dist/index.d.ts",
78
+ "default": "./dist/index.js"
79
+ },
80
+ "./package.json": "./package.json",
81
+ "./migrations.json": "./migrations.json",
82
+ "./generators.json": "./generators.json",
83
+ "./executors.json": "./executors.json",
84
+ "./plugin": {
85
+ "@nx/nx-source": "./plugin.ts",
86
+ "types": "./dist/plugin.d.ts",
87
+ "default": "./dist/plugin.js"
88
+ }
53
89
  }
54
90
  }
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/detox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC"}
package/plugin.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../packages/detox/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,kBAAkB,GACnB,MAAM,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"build.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/detox/src/executors/build/build.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,gBAAgB,CAAC,CAelC;AAED,wBAAgB,WAAW,CACzB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,iBAAiB,oBA4B3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/detox/src/executors/test/test.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAGhB,MAAM,YAAY,CAAC;AASpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,iBAAiB,CAC9C,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,eAAe,CAAC,CA4BjC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/detox/src/generators/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,IAAI,EAAE,MAAM,YAAY,CAAC;AASjE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAUlC,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mDAMzE;AAED,wBAAsB,iCAAiC,CACrD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,mDA6Df;AAED,eAAe,yBAAyB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-git-ignore-entry.d.ts","sourceRoot":"","sources":["../../../../../../../packages/detox/src/generators/application/lib/add-git-ignore-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,IAAI,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAQtE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-linting.d.ts","sourceRoot":"","sources":["../../../../../../../packages/detox/src/generators/application/lib/add-linting.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAGjB,IAAI,EACL,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AASvD,wBAAsB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,8BAgDrE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-project.d.ts","sourceRoot":"","sources":["../../../../../../../packages/detox/src/generators/application/lib/add-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,IAAI,EAEL,MAAM,YAAY,CAAC;AAOpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QA6C/D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-files.d.ts","sourceRoot":"","sources":["../../../../../../../packages/detox/src/generators/application/lib/create-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,IAAI,EAEL,MAAM,YAAY,CAAC;AAIpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAyDhE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ensure-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../packages/detox/src/generators/application/lib/ensure-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAMrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,0CAcvE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-targets.d.ts","sourceRoot":"","sources":["../../../../../../../packages/detox/src/generators/application/lib/get-targets.ts"],"names":[],"mappings":"AAAA,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,SAAS,GAAG,aAAa;;;;;;;;;EAWzE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,SAAS,GAAG,aAAa;;;;;;;;;;;;EAclE;AAED,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,SAAS,GAAG,aAAa,EACnC,OAAO,EAAE,MAAM;;;;;;;;;;;EAgBhB;AAED,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,SAAS,GAAG,aAAa,EACnC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;EAoBhB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/detox/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,IAAI,EAAE,MAAM,YAAY,CAAC;AAE/E,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAyC3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"convert-to-inferred.d.ts","sourceRoot":"","sources":["../../../../../../packages/detox/src/generators/convert-to-inferred/convert-to-inferred.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,KAAK,IAAI,EAEV,MAAM,YAAY,CAAC;AAMpB,UAAU,MAAM;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAyFlE;AAED,eAAe,iBAAiB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"post-target-transformer.d.ts","sourceRoot":"","sources":["../../../../../../../packages/detox/src/generators/convert-to-inferred/lib/post-target-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAE/E,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,CACd,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,aAAa,EAAE,aAAa,KACzB,IAAI,IAGP,QAAQ,mBAAmB,EAC3B,MAAM,IAAI,EACV,gBAAgB;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EACrD,6BAA6B,mBAAmB,8BAkDnD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process-build-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/detox/src/generators/convert-to-inferred/lib/process-build-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,mBAAmB,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,IAAI,EACX,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,cAAc,EAAE,aAAa,GAC5B,IAAI,CAwBN"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process-test-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/detox/src/generators/convert-to-inferred/lib/process-test-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,mBAAmB,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,IAAI,EACX,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,aAAa,EAAE,aAAa,GAC3B,IAAI,CAoEN"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/detox/src/generators/init/init.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,iBAAiB,EAIjB,IAAI,EACL,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAE5D;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BA6C1E;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qBAW5D;AAMD,eAAe,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-config-plugins-detox-for-expo-54.d.ts","sourceRoot":"","sources":["../../../../../../packages/detox/src/migrations/update-22-0-0/remove-config-plugins-detox-for-expo-54.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAA6C,MAAM,YAAY,CAAC;AAG7E;;;;;;;;GAQG;AACH,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,iBA4D9C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-create-nodes-v2-to-create-nodes.d.ts","sourceRoot":"","sources":["../../../../../../packages/detox/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,IAAI,EAEV,MAAM,YAAY,CAAC;AAsBpB,wBAA8B,iCAAiC,CAC7D,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,IAAI,CAAC,CAyBf;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,MAAM,CAoBR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/detox/src/plugins/plugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,WAAW,EAKZ,MAAM,YAAY,CAAC;AAOpB,MAAM,WAAW,kBAAkB;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAID,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,kBAAkB,CAsCvD,CAAC;AAEF,eAAO,MAAM,aAAa,iCAAc,CAAC"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"expo-version-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/detox/src/utils/expo-version-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAGnD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAiBjE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAMpD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/detox/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,YAAY,aAAa,CAAC;AACvC,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,yBAAyB,YAAY,CAAC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.configPluginsDetoxVersion = exports.testingLibraryJestDom = exports.detoxVersion = exports.nxVersion = void 0;
4
- exports.nxVersion = require('../../package.json').version;
5
- exports.detoxVersion = '~20.43.0';
6
- exports.testingLibraryJestDom = '~6.9.1';
7
- exports.configPluginsDetoxVersion = '~11.0.0'; // only required for expo
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes