@nx/expo 16.3.2 → 16.4.0-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/expo",
3
- "version": "16.3.2",
3
+ "version": "16.4.0-beta.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": [
@@ -26,14 +26,14 @@
26
26
  "main": "./index",
27
27
  "types": "index.d.ts",
28
28
  "dependencies": {
29
- "@nrwl/expo": "16.3.2",
30
- "@nx/detox": "16.3.2",
31
- "@nx/devkit": "16.3.2",
32
- "@nx/jest": "16.3.2",
33
- "@nx/js": "16.3.2",
34
- "@nx/linter": "16.3.2",
35
- "@nx/react": "16.3.2",
36
- "@nx/webpack": "16.3.2",
29
+ "@nrwl/expo": "16.4.0-beta.1",
30
+ "@nx/detox": "16.4.0-beta.1",
31
+ "@nx/devkit": "16.4.0-beta.1",
32
+ "@nx/jest": "16.4.0-beta.1",
33
+ "@nx/js": "16.4.0-beta.1",
34
+ "@nx/linter": "16.4.0-beta.1",
35
+ "@nx/react": "16.4.0-beta.1",
36
+ "@nx/webpack": "16.4.0-beta.1",
37
37
  "chalk": "^4.1.0",
38
38
  "enhanced-resolve": "^5.8.3",
39
39
  "fs-extra": "^11.1.0",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "097c1ca05f2fd825a6d7c70659350acd8455e144"
58
+ "gitHead": "1c4fb934b607f0d93bb23bff2cf0f39b31a8fa43"
59
59
  }
@@ -5,4 +5,4 @@ import { GeneratorCallback } from '@nx/devkit';
5
5
  * @returns resolve with 0 if not error, reject with error otherwise
6
6
  */
7
7
  export declare function runPodInstall(iosDirectory: string, install?: boolean, buildFolder?: string): GeneratorCallback;
8
- export declare function podInstall(iosDirectory: string, buildFolder?: string): Promise<void>;
8
+ export declare function podInstall(iosDirectory: string, buildFolder?: string): void;
@@ -28,7 +28,7 @@ function runPodInstall(iosDirectory, install = true, buildFolder) {
28
28
  devkit_1.logger.info('Skipping `pod install` on non-darwin platform');
29
29
  return;
30
30
  }
31
- if (!install || (0, fs_extra_1.existsSync)((0, path_1.join)(iosDirectory, 'Podfile'))) {
31
+ if (!install || !(0, fs_extra_1.existsSync)((0, path_1.join)(iosDirectory, 'Podfile'))) {
32
32
  devkit_1.logger.info('Skipping `pod install`');
33
33
  return;
34
34
  }
@@ -38,26 +38,15 @@ function runPodInstall(iosDirectory, install = true, buildFolder) {
38
38
  }
39
39
  exports.runPodInstall = runPodInstall;
40
40
  function podInstall(iosDirectory, buildFolder) {
41
- return new Promise((resolve, reject) => {
42
- (0, child_process_1.exec)('pod install', {
41
+ try {
42
+ (0, child_process_1.execSync)('pod install', {
43
43
  cwd: iosDirectory,
44
- }, (error, stdout, stderr) => {
45
- if (error) {
46
- devkit_1.logger.error(error.message);
47
- reject(new Error(podInstallErrorMessage));
48
- }
49
- if (stderr) {
50
- devkit_1.logger.error(stderr);
51
- reject(new Error(podInstallErrorMessage));
52
- }
53
- devkit_1.logger.info(stdout);
54
- if (stdout.includes('Pod installation complete')) {
55
- resolve();
56
- }
57
- else {
58
- reject(new Error(podInstallErrorMessage));
59
- }
44
+ stdio: 'inherit',
60
45
  });
61
- });
46
+ }
47
+ catch (e) {
48
+ devkit_1.logger.error(podInstallErrorMessage);
49
+ throw e;
50
+ }
62
51
  }
63
52
  exports.podInstall = podInstall;