@nx/react-native 17.0.1 → 17.0.3

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": "17.0.1",
3
+ "version": "17.0.3",
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": [
@@ -36,14 +36,14 @@
36
36
  "node-fetch": "^2.6.7",
37
37
  "tsconfig-paths": "^4.1.2",
38
38
  "tslib": "^2.3.0",
39
- "@nx/detox": "17.0.1",
40
- "@nx/devkit": "17.0.1",
41
- "@nx/jest": "17.0.1",
42
- "@nx/js": "17.0.1",
43
- "@nx/eslint": "17.0.1",
44
- "@nx/react": "17.0.1",
45
- "@nx/workspace": "17.0.1",
46
- "@nrwl/react-native": "17.0.1"
39
+ "@nx/detox": "17.0.3",
40
+ "@nx/devkit": "17.0.3",
41
+ "@nx/jest": "17.0.3",
42
+ "@nx/js": "17.0.3",
43
+ "@nx/eslint": "17.0.3",
44
+ "@nx/react": "17.0.3",
45
+ "@nx/workspace": "17.0.3",
46
+ "@nrwl/react-native": "17.0.3"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react-native": ">= 0.72.0 < 0.73.0"
@@ -2,4 +2,5 @@ export interface ReactNativePodInstallOptions {
2
2
  buildFolder: string; // default is './build'
3
3
  repoUpdate: boolean; // default is false
4
4
  deployment: boolean; // default is false
5
+ useBundler: boolean; // default is false
5
6
  }
@@ -22,6 +22,11 @@
22
22
  "description": "Disallow any changes to the Podfile or the Podfile.lock during installation.",
23
23
  "type": "boolean",
24
24
  "default": false
25
+ },
26
+ "useBundler": {
27
+ "description": "Run cocoapods within a Bundler environment, i.e. with the `bundle exec pod install` command",
28
+ "type": "boolean",
29
+ "default": false
25
30
  }
26
31
  },
27
32
  "required": ["buildFolder"]
@@ -8,9 +8,11 @@ export declare function runPodInstall(iosDirectory: string, install?: boolean, o
8
8
  buildFolder?: string;
9
9
  repoUpdate?: boolean;
10
10
  deployment?: boolean;
11
+ useBundler?: boolean;
11
12
  }): GeneratorCallback;
12
13
  export declare function podInstall(iosDirectory: string, options?: {
13
14
  buildFolder?: string;
14
15
  repoUpdate?: boolean;
15
16
  deployment?: boolean;
17
+ useBundler?: boolean;
16
18
  }): void;
@@ -26,6 +26,7 @@ function runPodInstall(iosDirectory, install = true, options = {
26
26
  buildFolder: './build',
27
27
  repoUpdate: false,
28
28
  deployment: false,
29
+ useBundler: false,
29
30
  }) {
30
31
  return () => {
31
32
  if ((0, os_1.platform)() !== 'darwin') {
@@ -45,6 +46,7 @@ function podInstall(iosDirectory, options = {
45
46
  buildFolder: './build',
46
47
  repoUpdate: false,
47
48
  deployment: false,
49
+ useBundler: false,
48
50
  }) {
49
51
  try {
50
52
  if ((0, fs_extra_1.existsSync)((0, path_1.join)(iosDirectory, '.xcode.env'))) {
@@ -53,7 +55,12 @@ function podInstall(iosDirectory, options = {
53
55
  stdio: 'inherit',
54
56
  });
55
57
  }
56
- (0, child_process_1.execSync)(`pod install ${options.repoUpdate ? '--repo-update' : ''} ${options.deployment ? '--deployment' : ''}`, {
58
+ const podCommand = [
59
+ options.useBundler ? 'bundle exec pod install' : 'pod install',
60
+ options.repoUpdate ? '--repo-update' : '',
61
+ options.deployment ? '--deployment' : '',
62
+ ].join(' ');
63
+ (0, child_process_1.execSync)(podCommand, {
57
64
  cwd: iosDirectory,
58
65
  stdio: 'inherit',
59
66
  });