Files
hackathon-v-escape-4ff8b5a6…/frontend/node_modules/@react-native-community/cli-platform-apple/build/tools/checkIfConfigurationExists.js
marianesaldana 80dbd947e5 Initial commit
2026-05-23 08:59:34 -06:00

24 lines
772 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.checkIfConfigurationExists = checkIfConfigurationExists;
function _cliTools() {
const data = require("@react-native-community/cli-tools");
_cliTools = function () {
return data;
};
return data;
}
function checkIfConfigurationExists(configurations, mode) {
if (configurations.length === 0) {
_cliTools().logger.warn(`Unable to check whether "${mode}" exists in your project`);
return;
}
if (!configurations.includes(mode)) {
throw new (_cliTools().CLIError)(`Configuration "${mode}" does not exist in your project. Please use one of the existing configurations: ${configurations.join(', ')}`);
}
}
//# sourceMappingURL=checkIfConfigurationExists.ts.map