mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
aba4ec0c09
Reviewed By: yungsters Differential Revision: D7962462 fbshipit-source-id: 0afe2092af8703895de91a6d1400315c3173aa6d
14 lines
313 B
JavaScript
14 lines
313 B
JavaScript
/** @format */
|
|
|
|
'use strict';
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
module.exports = function findPodfilePath(projectFolder) {
|
|
const podFilePath = path.join(projectFolder, '..', 'Podfile');
|
|
const podFileExists = fs.existsSync(podFilePath);
|
|
|
|
return podFileExists ? podFilePath : null;
|
|
};
|