@react-native-community/cli-platform-ios
Version:
This package is part of the [React Native CLI](../../README.md). It contains commands for managing iOS part of React Native app.
31 lines (29 loc) • 778 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getXcodeProjectAndDir = getXcodeProjectAndDir;
function _cliTools() {
const data = require("@react-native-community/cli-tools");
_cliTools = function () {
return data;
};
return data;
}
function getXcodeProjectAndDir(iosProjectConfig) {
if (!iosProjectConfig) {
throw new (_cliTools().CLIError)('iOS project folder not found. Are you sure this is a React Native project?');
}
const {
xcodeProject,
sourceDir
} = iosProjectConfig;
if (!xcodeProject) {
throw new (_cliTools().CLIError)(`Could not find Xcode project files in "${sourceDir}" folder`);
}
return {
xcodeProject,
sourceDir
};
}
//# sourceMappingURL=getXcodeProjectAndDir.ts.map