PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@expo/cli/build/src/export
Просмотр файла: getPublicExpoManifest.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getPublicExpoManifestAsync = getPublicExpoManifestAsync;
var _config = require("@expo/config");
var _env = require("../utils/env");
var _errors = require("../utils/errors");
var _getResolvedLocales = require("./getResolvedLocales");
async function getPublicExpoManifestAsync(projectRoot) {
// Read the config in public mode which strips the `hooks`.
const { exp } = (0, _config).getConfig(projectRoot, {
isPublicConfig: true,
// This shouldn't be needed since the CLI is vendored in `expo`.
skipSDKVersionRequirement: true
});
// Only allow projects to be published with UNVERSIONED if a correct token is set in env
if (exp.sdkVersion === "UNVERSIONED" && !_env.env.EXPO_SKIP_MANIFEST_VALIDATION_TOKEN) {
throw new _errors.CommandError("INVALID_OPTIONS", "Cannot publish with sdkVersion UNVERSIONED.");
}
return {
...exp,
locales: await (0, _getResolvedLocales).getResolvedLocalesAsync(projectRoot, exp),
sdkVersion: exp.sdkVersion
};
}
//# sourceMappingURL=getPublicExpoManifest.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!