@nx/detox 16.8.0-beta.1 → 16.8.0-beta.2

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": "16.8.0-beta.1",
3
+ "version": "16.8.0-beta.2",
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": [
@@ -25,12 +25,12 @@
25
25
  "main": "./index.js",
26
26
  "types": "index.d.ts",
27
27
  "dependencies": {
28
- "@nrwl/detox": "16.8.0-beta.1",
29
- "@nx/devkit": "16.8.0-beta.1",
30
- "@nx/jest": "16.8.0-beta.1",
31
- "@nx/js": "16.8.0-beta.1",
32
- "@nx/linter": "16.8.0-beta.1",
33
- "@nx/react": "16.8.0-beta.1",
28
+ "@nrwl/detox": "16.8.0-beta.2",
29
+ "@nx/devkit": "16.8.0-beta.2",
30
+ "@nx/jest": "16.8.0-beta.2",
31
+ "@nx/js": "16.8.0-beta.2",
32
+ "@nx/linter": "16.8.0-beta.2",
33
+ "@nx/react": "16.8.0-beta.2",
34
34
  "tslib": "^2.3.0"
35
35
  },
36
36
  "peerDependencies": {
@@ -46,5 +46,5 @@
46
46
  "access": "public"
47
47
  },
48
48
  "type": "commonjs",
49
- "gitHead": "231a998e004c13e559c171ba6c164a9127886153"
49
+ "gitHead": "9bcc04742f9e1516d8c1ddbfb1907770c347876f"
50
50
  }
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const linter_1 = require("@nx/linter");
6
6
  const devkit_1 = require("@nx/devkit");
7
7
  const react_1 = require("@nx/react");
8
+ const eslint_file_1 = require("@nx/linter/src/generators/utils/eslint-file");
8
9
  function addLinting(host, options) {
9
10
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
11
  if (options.linter === linter_1.Linter.None) {
@@ -19,7 +20,9 @@ function addLinting(host, options) {
19
20
  eslintFilePatterns: [`${options.e2eProjectRoot}/**/*.{ts,tsx,js,jsx}`],
20
21
  skipFormat: true,
21
22
  });
22
- (0, devkit_1.updateJson)(host, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, '.eslintrc.json'), react_1.extendReactEslintJson);
23
+ if ((0, eslint_file_1.isEslintConfigSupported)(host)) {
24
+ (0, eslint_file_1.addExtendsToLintConfig)(host, options.e2eProjectRoot, 'plugin:@nx/react');
25
+ }
23
26
  const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, react_1.extraEslintDependencies.dependencies, react_1.extraEslintDependencies.devDependencies);
24
27
  return (0, devkit_1.runTasksInSerial)(lintTask, installTask);
25
28
  });