@nx/expo 23.1.0 → 23.1.1

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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addE2e = addE2e;
4
4
  const internal_1 = require("@nx/devkit/internal");
5
5
  const devkit_1 = require("@nx/devkit");
6
+ const internal_2 = require("@nx/eslint/internal");
6
7
  const has_expo_plugin_1 = require("../../../utils/has-expo-plugin");
7
8
  const versions_1 = require("../../../utils/versions");
8
9
  async function addE2e(tree, options) {
@@ -93,7 +94,7 @@ async function addE2e(tree, options) {
93
94
  directory: 'src',
94
95
  js: false,
95
96
  linter: options.linter,
96
- setParserOptionsProject: options.setParserOptionsProject,
97
+ enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
97
98
  webServerCommand: e2eWebServerInfo.e2eCiWebServerCommand,
98
99
  webServerAddress: e2eWebServerInfo.e2eCiBaseUrl,
99
100
  rootProject: options.rootProject,
@@ -111,7 +112,7 @@ async function addE2e(tree, options) {
111
112
  appDisplayName: options.displayName,
112
113
  appName: options.simpleName,
113
114
  framework: 'expo',
114
- setParserOptionsProject: options.setParserOptionsProject,
115
+ enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
115
116
  skipFormat: true,
116
117
  });
117
118
  case 'none':
@@ -11,6 +11,10 @@ export interface Schema {
11
11
  classComponent?: boolean;
12
12
  js: boolean; // default is false
13
13
  linter: Linter | LinterType; // default is eslint
14
+ enableTypedLinting?: boolean; // default is false
15
+ /**
16
+ * @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
17
+ */
14
18
  setParserOptionsProject?: boolean; // default is false
15
19
  e2eTestRunner: 'cypress' | 'playwright' | 'detox' | 'none'; // default is none
16
20
  skipPackageJson?: boolean; // default is false
@@ -66,11 +66,17 @@
66
66
  "description": "Generate JavaScript files rather than TypeScript files",
67
67
  "default": false
68
68
  },
69
- "setParserOptionsProject": {
69
+ "enableTypedLinting": {
70
70
  "type": "boolean",
71
- "description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.",
71
+ "description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
72
72
  "default": false
73
73
  },
74
+ "setParserOptionsProject": {
75
+ "type": "boolean",
76
+ "description": "Deprecated alias for `enableTypedLinting`.",
77
+ "default": false,
78
+ "x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
79
+ },
74
80
  "e2eTestRunner": {
75
81
  "description": "Adds the specified e2e test runner",
76
82
  "type": "string",
@@ -16,6 +16,10 @@ export interface Schema {
16
16
  importPath?: string;
17
17
  js: boolean; // default is false
18
18
  strict: boolean; // default is true
19
+ enableTypedLinting?: boolean;
20
+ /**
21
+ * @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
22
+ */
19
23
  setParserOptionsProject?: boolean;
20
24
  skipPackageJson?: boolean; // default is false
21
25
  addPlugin?: boolean;
@@ -81,11 +81,17 @@
81
81
  "description": "Whether to enable tsconfig strict mode or not.",
82
82
  "default": true
83
83
  },
84
- "setParserOptionsProject": {
84
+ "enableTypedLinting": {
85
85
  "type": "boolean",
86
- "description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.",
86
+ "description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
87
87
  "default": false
88
88
  },
89
+ "setParserOptionsProject": {
90
+ "type": "boolean",
91
+ "description": "Deprecated alias for `enableTypedLinting`.",
92
+ "default": false,
93
+ "x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
94
+ },
89
95
  "skipPackageJson": {
90
96
  "type": "boolean",
91
97
  "description": "Do not add dependencies to `package.json`.",
@@ -4,6 +4,10 @@ interface NormalizedSchema {
4
4
  linter?: Linter | LinterType;
5
5
  projectName: string;
6
6
  projectRoot: string;
7
+ enableTypedLinting?: boolean;
8
+ /**
9
+ * @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
10
+ */
7
11
  setParserOptionsProject?: boolean;
8
12
  tsConfigPaths: string[];
9
13
  skipPackageJson?: boolean;
@@ -16,6 +16,7 @@ async function addLinting(host, options) {
16
16
  tsConfigPaths: options.tsConfigPaths,
17
17
  skipFormat: true,
18
18
  skipPackageJson: options.skipPackageJson,
19
+ enableTypedLinting: (0, internal_1.isTypedLintingEnabled)(options),
19
20
  addPlugin: options.addPlugin,
20
21
  addPackageJsonDependencyChecks: options.buildable,
21
22
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/expo",
3
- "version": "23.1.0",
3
+ "version": "23.1.1",
4
4
  "private": false,
5
5
  "description": "The Expo Plugin for Nx contains executors and generators for managing and developing an expo application within your workspace. For example, you can directly build for different target platforms as well as generate projects and publish your code.",
6
6
  "keywords": [
@@ -61,18 +61,26 @@
61
61
  "semver": "^7.6.3",
62
62
  "tsconfig-paths": "^4.1.2",
63
63
  "tslib": "^2.3.0",
64
- "@nx/devkit": "23.1.0",
65
- "@nx/eslint": "23.1.0",
66
- "@nx/js": "23.1.0",
67
- "@nx/react": "23.1.0"
64
+ "@nx/devkit": "23.1.1",
65
+ "@nx/eslint": "23.1.1",
66
+ "@nx/js": "23.1.1",
67
+ "@nx/react": "23.1.1"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "expo": ">=53.0.0",
71
71
  "@expo/metro": ">= 55.0.0",
72
72
  "metro-config": ">= 0.82.0",
73
- "metro-resolver": ">= 0.82.0"
73
+ "metro-resolver": ">= 0.82.0",
74
+ "@nx/cypress": "23.1.1",
75
+ "@nx/playwright": "23.1.1"
74
76
  },
75
77
  "peerDependenciesMeta": {
78
+ "@nx/cypress": {
79
+ "optional": true
80
+ },
81
+ "@nx/playwright": {
82
+ "optional": true
83
+ },
76
84
  "expo": {
77
85
  "optional": true
78
86
  },
@@ -87,11 +95,11 @@
87
95
  }
88
96
  },
89
97
  "devDependencies": {
90
- "nx": "23.1.0"
98
+ "nx": "23.1.1"
91
99
  },
92
100
  "optionalDependencies": {
93
- "@nx/detox": "23.1.0",
94
- "@nx/rollup": "23.1.0"
101
+ "@nx/detox": "23.1.1",
102
+ "@nx/rollup": "23.1.1"
95
103
  },
96
104
  "executors": "./executors.json",
97
105
  "ng-update": {