@nx/expo 20.3.0 → 20.4.0-beta.0

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2017-2024 Narwhal Technologies Inc.
3
+ Copyright (c) 2017-2025 Narwhal Technologies Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/expo",
3
- "version": "20.3.0",
3
+ "version": "20.4.0-beta.0",
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": [
@@ -28,13 +28,13 @@
28
28
  "main": "./index",
29
29
  "types": "index.d.ts",
30
30
  "dependencies": {
31
- "@nx/devkit": "20.3.0",
32
- "@nx/eslint": "20.3.0",
33
- "@nx/jest": "20.3.0",
34
- "@nx/js": "20.3.0",
35
- "@nx/react": "20.3.0",
36
- "@nx/web": "20.3.0",
37
- "@nx/webpack": "20.3.0",
31
+ "@nx/devkit": "20.4.0-beta.0",
32
+ "@nx/eslint": "20.4.0-beta.0",
33
+ "@nx/jest": "20.4.0-beta.0",
34
+ "@nx/js": "20.4.0-beta.0",
35
+ "@nx/react": "20.4.0-beta.0",
36
+ "@nx/web": "20.4.0-beta.0",
37
+ "@nx/webpack": "20.4.0-beta.0",
38
38
  "enhanced-resolve": "^5.8.3",
39
39
  "metro-config": "~0.80.4",
40
40
  "metro-resolver": "~0.80.4",
@@ -9,6 +9,8 @@ export interface ExpoPluginOptions {
9
9
  installTargetName?: string;
10
10
  buildTargetName?: string;
11
11
  submitTargetName?: string;
12
+ buildDepsTargetName?: string;
13
+ watchDepsTargetName?: string;
12
14
  }
13
15
  export declare const createNodesV2: CreateNodesV2<ExpoPluginOptions>;
14
16
  export declare const createNodes: CreateNodes<ExpoPluginOptions>;
package/plugins/plugin.js CHANGED
@@ -10,6 +10,8 @@ const calculate_hash_for_create_nodes_1 = require("@nx/devkit/src/utils/calculat
10
10
  const cache_directory_1 = require("nx/src/utils/cache-directory");
11
11
  const devkit_internals_1 = require("nx/src/devkit-internals");
12
12
  const config_utils_1 = require("@nx/devkit/src/utils/config-utils");
13
+ const util_1 = require("@nx/js/src/plugins/typescript/util");
14
+ const pmc = (0, devkit_1.getPackageManagerCommand)();
13
15
  function readTargetsCache(cachePath) {
14
16
  return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
15
17
  }
@@ -111,6 +113,7 @@ function buildExpoTargets(projectRoot, options, context) {
111
113
  options: { cwd: projectRoot },
112
114
  },
113
115
  };
116
+ (0, util_1.addBuildAndWatchDepsTargets)(context.workspaceRoot, projectRoot, targets, options, pmc);
114
117
  return targets;
115
118
  }
116
119
  function getAppConfig(configFilePath, context) {
@@ -32,6 +32,16 @@ async function expoInitGeneratorInternal(host, schema) {
32
32
  'expo:run-android',
33
33
  'expo-run-android',
34
34
  ],
35
+ buildDepsTargetName: [
36
+ 'build-deps',
37
+ 'expo:build-deps',
38
+ 'expo-build-deps',
39
+ ],
40
+ watchDepsTargetName: [
41
+ 'watch-deps',
42
+ 'expo:watch-deps',
43
+ 'expo-watch-deps',
44
+ ],
35
45
  }, schema.updatePackageScripts);
36
46
  }
37
47
  const tasks = [];