You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
639 B

"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(project, mode) {
if (!project.configurations.includes(mode)) {
throw new (_cliTools().CLIError)(`Configuration "${mode}" does not exist in your project. Please use one of the existing configurations: ${project.configurations.join(', ')}`);
}
}
//# sourceMappingURL=checkIfConfigurationExists.js.map