@nx/expo 23.0.0-beta.16 → 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/migrations.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "version": "22.2.0-beta.3",
23
23
  "cli": "nx",
24
24
  "description": "Create AI migration instructions for Expo SDK 54 upgrade",
25
- "factory": "./src/migrations/update-22-2-0/create-ai-instructions-for-expo-54"
25
+ "prompt": "./src/migrations/update-22-2-0/ai-instructions-for-expo-54.md"
26
26
  },
27
27
  "update-22-2-0-add-expo-system-ui": {
28
28
  "version": "22.2.0-beta.3",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/expo",
3
- "version": "23.0.0-beta.16",
3
+ "version": "23.0.0-beta.17",
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": [
@@ -29,10 +29,10 @@
29
29
  "type": "commonjs",
30
30
  "types": "index.d.ts",
31
31
  "dependencies": {
32
- "@nx/devkit": "23.0.0-beta.16",
33
- "@nx/eslint": "23.0.0-beta.16",
34
- "@nx/js": "23.0.0-beta.16",
35
- "@nx/react": "23.0.0-beta.16",
32
+ "@nx/devkit": "23.0.0-beta.17",
33
+ "@nx/eslint": "23.0.0-beta.17",
34
+ "@nx/js": "23.0.0-beta.17",
35
+ "@nx/react": "23.0.0-beta.17",
36
36
  "enhanced-resolve": "^5.8.3",
37
37
  "picocolors": "^1.1.0",
38
38
  "semver": "^7.6.3",
@@ -44,11 +44,11 @@
44
44
  "metro-resolver": ">= 0.82.0"
45
45
  },
46
46
  "devDependencies": {
47
- "nx": "23.0.0-beta.16"
47
+ "nx": "23.0.0-beta.17"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@nx/detox": "23.0.0-beta.16",
51
- "@nx/rollup": "23.0.0-beta.16"
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 () => { };
@@ -22,8 +21,8 @@ async function addLinting(host, options) {
22
21
  });
23
22
  tasks.push(lintTask);
24
23
  // Add ignored dependencies and files to dependency-checks rule
25
- if ((0, eslint_file_1.isEslintConfigSupported)(host)) {
26
- (0, eslint_file_1.updateOverrideInLintConfig)(host, options.projectRoot, (override) => Boolean(override.rules?.['@nx/dependency-checks']), (override) => {
24
+ if ((0, internal_1.isEslintConfigSupported)(host)) {
25
+ (0, internal_1.updateOverrideInLintConfig)(host, options.projectRoot, (override) => Boolean(override.rules?.['@nx/dependency-checks']), (override) => {
27
26
  const rule = override.rules['@nx/dependency-checks'];
28
27
  if (Array.isArray(rule) && rule.length > 1) {
29
28
  // 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
  '.expo',
68
67
  'web-build',
69
68
  'cache',
@@ -1,3 +0,0 @@
1
- import { Tree } from '@nx/devkit';
2
- export default function createAiInstructionsForExpo54(tree: Tree): Promise<string[]>;
3
- //# sourceMappingURL=create-ai-instructions-for-expo-54.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-ai-instructions-for-expo-54.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/migrations/update-22-2-0/create-ai-instructions-for-expo-54.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,wBAA8B,6BAA6B,CAAC,IAAI,EAAE,IAAI,qBAerE"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = createAiInstructionsForExpo54;
4
- const path_1 = require("path");
5
- const fs_1 = require("fs");
6
- async function createAiInstructionsForExpo54(tree) {
7
- const pathToAiInstructions = (0, path_1.join)(__dirname, 'files', 'ai-instructions-for-expo-54.md');
8
- if (!(0, fs_1.existsSync)(pathToAiInstructions)) {
9
- return;
10
- }
11
- const contents = (0, fs_1.readFileSync)(pathToAiInstructions, 'utf-8');
12
- tree.write('tools/ai-migrations/MIGRATE_EXPO_54.md', contents);
13
- return [
14
- `We created 'tools/ai-migrations/MIGRATE_EXPO_54.md' with instructions for an AI Agent to help migrate your Expo projects to Expo SDK 54.`,
15
- ];
16
- }