@nx/detox 23.0.0-beta.12 → 23.0.0-beta.14

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.12",
3
+ "version": "23.0.0-beta.14",
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.12",
32
- "@nx/jest": "23.0.0-beta.12",
33
- "@nx/js": "23.0.0-beta.12",
34
- "@nx/eslint": "23.0.0-beta.12",
35
- "@nx/react": "23.0.0-beta.12",
31
+ "@nx/devkit": "23.0.0-beta.14",
32
+ "@nx/jest": "23.0.0-beta.14",
33
+ "@nx/js": "23.0.0-beta.14",
34
+ "@nx/eslint": "23.0.0-beta.14",
35
+ "@nx/react": "23.0.0-beta.14",
36
36
  "semver": "^7.6.3",
37
37
  "tslib": "^2.3.0"
38
38
  },
39
39
  "devDependencies": {
40
- "nx": "23.0.0-beta.12"
40
+ "nx": "23.0.0-beta.14"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "detox": "^20.9.0"
@@ -12,8 +12,7 @@ const add_project_1 = require("./lib/add-project");
12
12
  const create_files_1 = require("./lib/create-files");
13
13
  const normalize_options_1 = require("./lib/normalize-options");
14
14
  const ensure_dependencies_1 = require("./lib/ensure-dependencies");
15
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
16
- const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
15
+ const internal_1 = require("@nx/js/internal");
17
16
  const expo_version_utils_1 = require("../../utils/expo-version-utils");
18
17
  async function detoxApplicationGenerator(host, schema) {
19
18
  return await detoxApplicationGeneratorInternal(host, {
@@ -23,7 +22,7 @@ async function detoxApplicationGenerator(host, schema) {
23
22
  });
24
23
  }
25
24
  async function detoxApplicationGeneratorInternal(host, schema) {
26
- const addTsPlugin = (0, ts_solution_setup_1.shouldConfigureTsSolutionSetup)(host, schema.addPlugin);
25
+ const addTsPlugin = (0, internal_1.shouldConfigureTsSolutionSetup)(host, schema.addPlugin);
27
26
  const jsInitTask = await (0, js_1.initGenerator)(host, {
28
27
  addTsPlugin,
29
28
  skipFormat: true,
@@ -48,7 +47,7 @@ async function detoxApplicationGeneratorInternal(host, schema) {
48
47
  (0, add_git_ignore_entry_1.addGitIgnoreEntry)(host, options);
49
48
  const lintingTask = await (0, add_linting_1.addLinting)(host, options);
50
49
  const depsTask = (0, ensure_dependencies_1.ensureDependencies)(host, options);
51
- (0, ts_solution_setup_1.updateTsconfigFiles)(host, options.e2eProjectRoot, 'tsconfig.json', {
50
+ (0, internal_1.updateTsconfigFiles)(host, options.e2eProjectRoot, 'tsconfig.json', {
52
51
  module: 'esnext',
53
52
  moduleResolution: 'bundler',
54
53
  outDir: 'out-tsc/detox',
@@ -58,9 +57,9 @@ async function detoxApplicationGeneratorInternal(host, schema) {
58
57
  ? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
59
58
  : undefined);
60
59
  if (options.isUsingTsSolutionConfig) {
61
- await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.e2eProjectRoot);
60
+ await (0, internal_1.addProjectToTsSolutionWorkspace)(host, options.e2eProjectRoot);
62
61
  }
63
- (0, sort_fields_1.sortPackageJsonFields)(host, options.e2eProjectRoot);
62
+ (0, internal_1.sortPackageJsonFields)(host, options.e2eProjectRoot);
64
63
  if (!options.skipFormat) {
65
64
  await (0, devkit_1.formatFiles)(host);
66
65
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createFiles = createFiles;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const js_1 = require("@nx/js");
6
- const add_swc_config_1 = require("@nx/js/src/utils/swc/add-swc-config");
6
+ const internal_1 = require("@nx/js/internal");
7
7
  const path_1 = require("path");
8
8
  function createFiles(host, options) {
9
9
  const offsetFromRoot = (0, devkit_1.offsetFromRoot)(options.e2eProjectRoot);
@@ -18,7 +18,7 @@ function createFiles(host, options) {
18
18
  : 'jest.config.json',
19
19
  });
20
20
  if (options.isUsingTsSolutionConfig) {
21
- (0, add_swc_config_1.addSwcTestConfig)(host, options.e2eProjectRoot, 'es6');
21
+ (0, internal_1.addSwcTestConfig)(host, options.e2eProjectRoot, 'es6');
22
22
  (0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, '../files/ts-solution'), options.e2eProjectRoot, {
23
23
  ...options,
24
24
  exec: (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(host.root)).exec,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeOptions = normalizeOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const internal_1 = require("@nx/devkit/internal");
6
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
6
+ const internal_2 = require("@nx/js/internal");
7
7
  async function normalizeOptions(host, options) {
8
8
  const { projectName, projectRoot: e2eProjectRoot, importPath, } = await (0, internal_1.determineProjectNameAndRootOptions)(host, {
9
9
  name: options.e2eName,
@@ -16,7 +16,7 @@ async function normalizeOptions(host, options) {
16
16
  options.addPlugin ??= addPlugin;
17
17
  const { fileName: appFileName, className: appClassName } = (0, devkit_1.names)(options.appName || options.appProject);
18
18
  const { root: appRoot } = (0, devkit_1.readProjectConfiguration)(host, options.appProject);
19
- const isUsingTsSolutionConfig = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host);
19
+ const isUsingTsSolutionConfig = (0, internal_2.isUsingTsSolutionSetup)(host);
20
20
  const e2eProjectName = !isUsingTsSolutionConfig || options.e2eName ? projectName : importPath;
21
21
  // We default to generate a project.json file if the new setup is not being used
22
22
  const useProjectJson = options.useProjectJson ?? !isUsingTsSolutionConfig;
@@ -7,7 +7,7 @@ const path_1 = require("path");
7
7
  const js_1 = require("@nx/js");
8
8
  const cache_directory_1 = require("nx/src/utils/cache-directory");
9
9
  const devkit_internals_1 = require("nx/src/devkit-internals");
10
- const util_1 = require("@nx/js/src/plugins/typescript/util");
10
+ const internal_2 = require("@nx/js/internal");
11
11
  exports.createNodes = [
12
12
  '**/{detox.config,.detoxrc}.{json,js}',
13
13
  async (configFiles, options, context) => {
@@ -62,7 +62,7 @@ function buildDetoxTargets(projectRoot, options, context, pmc) {
62
62
  inputs: getInputs(namedInputs),
63
63
  },
64
64
  };
65
- (0, util_1.addBuildAndWatchDepsTargets)(context.workspaceRoot, projectRoot, targets, options, pmc);
65
+ (0, internal_2.addBuildAndWatchDepsTargets)(context.workspaceRoot, projectRoot, targets, options, pmc);
66
66
  return targets;
67
67
  }
68
68
  function getInputs(namedInputs) {