forked from react-native-community/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ios): use Bundler for pods installation (react-native-community#…
…1708) Co-authored-by: Ruslan Lesiutin <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import execa from 'execa'; | ||
import {logger} from '@react-native-community/cli-tools'; | ||
|
||
import {Loader} from '../types'; | ||
|
||
async function runBundleInstall(loader: Loader) { | ||
try { | ||
loader.start('Installing Bundler'); | ||
|
||
await execa('bundle', ['install']); | ||
} catch (error) { | ||
loader.fail(); | ||
logger.error(error.stderr || error.stdout); | ||
|
||
throw new Error( | ||
'Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/next/environment-setup and follow the React Native CLI QuickStart guide for macOS and iOS.', | ||
); | ||
} | ||
|
||
loader.succeed(); | ||
} | ||
|
||
export default runBundleInstall; |