@nx/react-native 23.0.0-beta.15 → 23.0.0-beta.17

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/react-native",
3
- "version": "23.0.0-beta.15",
3
+ "version": "23.0.0-beta.17",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides: \n\n-Integration with libraries such as Jest, Detox, and Storybook.\n-Scaffolding for creating buildable libraries that can be published to npm.\n-Utilities for automatic workspace refactoring.",
6
6
  "keywords": [
@@ -27,10 +27,10 @@
27
27
  "type": "commonjs",
28
28
  "types": "index.d.ts",
29
29
  "dependencies": {
30
- "@nx/devkit": "23.0.0-beta.15",
31
- "@nx/js": "23.0.0-beta.15",
32
- "@nx/eslint": "23.0.0-beta.15",
33
- "@nx/react": "23.0.0-beta.15",
30
+ "@nx/devkit": "23.0.0-beta.17",
31
+ "@nx/js": "23.0.0-beta.17",
32
+ "@nx/eslint": "23.0.0-beta.17",
33
+ "@nx/react": "23.0.0-beta.17",
34
34
  "ajv": "^8.0.0",
35
35
  "enhanced-resolve": "^5.8.3",
36
36
  "ignore": "^7.0.5",
@@ -44,11 +44,11 @@
44
44
  "metro-resolver": ">= 0.82.0"
45
45
  },
46
46
  "devDependencies": {
47
- "nx": "23.0.0-beta.15"
47
+ "nx": "23.0.0-beta.17"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@nx/detox": "23.0.0-beta.15",
51
- "@nx/rollup": "23.0.0-beta.15"
50
+ "@nx/detox": "23.0.0-beta.17",
51
+ "@nx/rollup": "23.0.0-beta.17"
52
52
  },
53
53
  "executors": "./executors.json",
54
54
  "ng-update": {
@@ -4,8 +4,7 @@ exports.addLinting = addLinting;
4
4
  const eslint_1 = require("@nx/eslint");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const lint_1 = require("@nx/react/src/utils/lint");
7
- const eslint_file_1 = require("@nx/eslint/src/generators/utils/eslint-file");
8
- const flat_config_1 = require("@nx/eslint/src/utils/flat-config");
7
+ const internal_1 = require("@nx/eslint/internal");
9
8
  async function addLinting(host, options) {
10
9
  if (options.linter === 'none') {
11
10
  return () => { };
@@ -23,8 +22,8 @@ async function addLinting(host, options) {
23
22
  });
24
23
  tasks.push(lintTask);
25
24
  // Add ignored dependencies and files to dependency-checks rule
26
- if ((0, eslint_file_1.isEslintConfigSupported)(host)) {
27
- (0, eslint_file_1.updateOverrideInLintConfig)(host, options.projectRoot, (override) => Boolean(override.rules?.['@nx/dependency-checks']), (override) => {
25
+ if ((0, internal_1.isEslintConfigSupported)(host)) {
26
+ (0, internal_1.updateOverrideInLintConfig)(host, options.projectRoot, (override) => Boolean(override.rules?.['@nx/dependency-checks']), (override) => {
28
27
  const rule = override.rules['@nx/dependency-checks'];
29
28
  if (Array.isArray(rule) && rule.length > 1) {
30
29
  // Ensure ignoredDependencies array exists
@@ -47,23 +46,23 @@ async function addLinting(host, options) {
47
46
  return override;
48
47
  });
49
48
  }
50
- if ((0, eslint_file_1.isEslintConfigSupported)(host)) {
51
- if ((0, flat_config_1.useFlatConfig)(host)) {
52
- (0, eslint_file_1.addPredefinedConfigToFlatLintConfig)(host, options.projectRoot, 'flat/react', { checkBaseConfig: true });
49
+ if ((0, internal_1.isEslintConfigSupported)(host)) {
50
+ if ((0, internal_1.useFlatConfig)(host)) {
51
+ (0, internal_1.addPredefinedConfigToFlatLintConfig)(host, options.projectRoot, 'flat/react', { checkBaseConfig: true });
53
52
  // Add an empty rules object to users know how to add/override rules
54
- (0, eslint_file_1.addOverrideToLintConfig)(host, options.projectRoot, {
53
+ (0, internal_1.addOverrideToLintConfig)(host, options.projectRoot, {
55
54
  files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
56
55
  rules: {},
57
56
  });
58
57
  }
59
58
  else {
60
- const addExtendsTask = (0, eslint_file_1.addExtendsToLintConfig)(host, options.projectRoot, {
59
+ const addExtendsTask = (0, internal_1.addExtendsToLintConfig)(host, options.projectRoot, {
61
60
  name: 'plugin:@nx/react',
62
61
  needCompatFixup: true,
63
62
  });
64
63
  tasks.push(addExtendsTask);
65
64
  }
66
- (0, eslint_file_1.addIgnoresToLintConfig)(host, options.projectRoot, [
65
+ (0, internal_1.addIgnoresToLintConfig)(host, options.projectRoot, [
67
66
  'public',
68
67
  '.cache',
69
68
  'node_modules',