@expo/config 57.0.10 → 57.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/Config.js CHANGED
@@ -37,13 +37,6 @@ function _requireUtils() {
37
37
  };
38
38
  return data;
39
39
  }
40
- function _deepmerge() {
41
- const data = _interopRequireDefault(require("deepmerge"));
42
- _deepmerge = function () {
43
- return data;
44
- };
45
- return data;
46
- }
47
40
  function _glob() {
48
41
  const data = require("glob");
49
42
  _glob = function () {
@@ -72,6 +65,13 @@ function _slugify() {
72
65
  };
73
66
  return data;
74
67
  }
68
+ function _util() {
69
+ const data = require("util");
70
+ _util = function () {
71
+ return data;
72
+ };
73
+ return data;
74
+ }
75
75
  function _getConfig() {
76
76
  const data = require("./getConfig");
77
77
  _getConfig = function () {
@@ -86,6 +86,13 @@ function _getExpoSDKVersion() {
86
86
  };
87
87
  return data;
88
88
  }
89
+ function _mergeConfig() {
90
+ const data = require("./mergeConfig");
91
+ _mergeConfig = function () {
92
+ return data;
93
+ };
94
+ return data;
95
+ }
89
96
  function _withConfigPlugins() {
90
97
  const data = require("./plugins/withConfigPlugins");
91
98
  _withConfigPlugins = function () {
@@ -364,7 +371,7 @@ async function modifyConfigAsync(projectRoot, modifications, readOptions = {}, w
364
371
  }
365
372
 
366
373
  // Attempt to write to a function-like dynamic config, when used with a static config
367
- if (config.staticConfigPath && config.dynamicConfigObjectType === 'function' && !modifications.hasOwnProperty('plugins') // We don't know what plugins are in dynamic configs
374
+ if (config.staticConfigPath && config.dynamicConfigObjectType === 'function' && !Object.hasOwn(modifications, 'plugins') // We don't know what plugins are in dynamic configs
368
375
  ) {
369
376
  const outputConfig = mergeConfigModifications(config, modifications);
370
377
  if (isDryRun) {
@@ -382,7 +389,7 @@ async function modifyConfigAsync(projectRoot, modifications, readOptions = {}, w
382
389
 
383
390
  // Verify that the dynamic config is using the static config
384
391
  const newConfig = getConfig(projectRoot, readOptions);
385
- const newConfighasModifications = isMatchingObject(modifications, newConfig.exp);
392
+ const newConfighasModifications = hasConfigModifications(modifications, newConfig.exp);
386
393
  if (newConfighasModifications) {
387
394
  return {
388
395
  type: 'success',
@@ -404,6 +411,22 @@ async function modifyConfigAsync(projectRoot, modifications, readOptions = {}, w
404
411
  };
405
412
  }
406
413
 
414
+ /**
415
+ * Append the source items to the target array, then remove duplicate entries, keeping the first
416
+ * occurrence. Used only for `updates`, whose arrays are sets: `eas update:configure` sends the
417
+ * existing `updates` object back with a new `url`, and the default merge would write each existing
418
+ * entry twice. Other arrays keep the default merge, because plugins can depend on it.
419
+ */
420
+ function mergeArraysWithoutDuplicates(target, source) {
421
+ const result = [];
422
+ for (const item of [...target, ...source]) {
423
+ if (!result.some(existing => (0, _util().isDeepStrictEqual)(existing, item))) {
424
+ result.push(item);
425
+ }
426
+ }
427
+ return result;
428
+ }
429
+
407
430
  /**
408
431
  * Merge the config modifications, using an optional possible top-level `expo` object.
409
432
  * Note, changes in the plugins are merged differently to avoid duplicate entries.
@@ -412,7 +435,11 @@ function mergeConfigModifications(config, {
412
435
  plugins,
413
436
  ...modifications
414
437
  }) {
415
- const modifiedExpoConfig = !config.rootConfig.expo ? (0, _deepmerge().default)(config.rootConfig, modifications) : (0, _deepmerge().default)(config.rootConfig.expo, modifications);
438
+ const baseConfig = config.rootConfig.expo || config.rootConfig;
439
+ const modifiedExpoConfig = (0, _mergeConfig().mergeConfig)(baseConfig, modifications);
440
+ if (isPlainObject(modifications.updates)) {
441
+ modifiedExpoConfig.updates = (0, _mergeConfig().mergeConfig)(isPlainObject(baseConfig.updates) ? baseConfig.updates : {}, modifications.updates, mergeArraysWithoutDuplicates);
442
+ }
416
443
  if (plugins?.length) {
417
444
  // When adding plugins, ensure the config has a plugin list
418
445
  if (!modifiedExpoConfig.plugins) {
@@ -428,7 +455,7 @@ function mergeConfigModifications(config, {
428
455
  if (!pluginName) continue;
429
456
 
430
457
  // Add the plugin if it doesn't exist yet, including its properties
431
- if (!(pluginName in existingPlugins)) {
458
+ if (!Object.hasOwn(existingPlugins, pluginName)) {
432
459
  modifiedExpoConfig.plugins.push(plugin);
433
460
  continue;
434
461
  }
@@ -450,7 +477,7 @@ function mergeConfigModifications(config, {
450
477
 
451
478
  // Merge the props to the existing plugin properties
452
479
  if (Array.isArray(existingPlugin) && existingPlugin[0]) {
453
- return [existingPlugin[0], (0, _deepmerge().default)(existingPlugin[1] ?? {}, pluginProps)];
480
+ return [existingPlugin[0], (0, _mergeConfig().mergeConfig)(existingPlugin[1] ?? {}, pluginProps)];
454
481
  }
455
482
  return existingPlugin;
456
483
  });
@@ -466,13 +493,43 @@ function mergeConfigModifications(config, {
466
493
  };
467
494
  return finalizedConfig;
468
495
  }
469
- function isMatchingObject(expectedValues, actualValues) {
496
+ function isPlainObject(value) {
497
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
498
+ }
499
+
500
+ /**
501
+ * `updates` arrays are merged as sets (see `mergeArraysWithoutDuplicates`), so they are compared
502
+ * as sets. Arrays everywhere else are compared item by item, in order.
503
+ */
504
+ function hasConfigModifications(modifications, config) {
505
+ const {
506
+ updates,
507
+ ...otherModifications
508
+ } = modifications;
509
+ if (!isMatchingObject(otherModifications, config)) {
510
+ return false;
511
+ }
512
+ if (!('updates' in modifications)) {
513
+ return true;
514
+ }
515
+ if (!isPlainObject(updates)) {
516
+ return isMatchingObject({
517
+ updates
518
+ }, config);
519
+ }
520
+ return isPlainObject(config.updates) && isMatchingObject(updates, config.updates, true);
521
+ }
522
+ function isMatchingObject(expectedValues, actualValues, matchArraysAsSets = false) {
470
523
  for (const key in expectedValues) {
471
- if (!expectedValues.hasOwnProperty(key)) {
524
+ if (!Object.hasOwn(expectedValues, key)) {
472
525
  continue;
473
526
  }
474
- if (typeof expectedValues[key] === 'object' && actualValues[key] !== null) {
475
- if (!isMatchingObject(expectedValues[key], actualValues[key])) {
527
+ if (matchArraysAsSets && Array.isArray(expectedValues[key])) {
528
+ if (!isMatchingArray(expectedValues[key], actualValues[key])) {
529
+ return false;
530
+ }
531
+ } else if (typeof expectedValues[key] === 'object' && actualValues[key] !== null) {
532
+ if (!isMatchingObject(expectedValues[key], actualValues[key], matchArraysAsSets)) {
476
533
  return false;
477
534
  }
478
535
  } else {
@@ -483,6 +540,17 @@ function isMatchingObject(expectedValues, actualValues) {
483
540
  }
484
541
  return true;
485
542
  }
543
+
544
+ /**
545
+ * An expected array matches when each of its items is in the actual array, regardless of order or
546
+ * repeated items.
547
+ */
548
+ function isMatchingArray(expectedItems, actualItems) {
549
+ if (!Array.isArray(actualItems)) {
550
+ return false;
551
+ }
552
+ return expectedItems.every(expected => actualItems.some(actual => typeof expected === 'object' && expected !== null ? typeof actual === 'object' && actual !== null && isMatchingObject(expected, actual, true) : expected === actual));
553
+ }
486
554
  function ensureConfigHasDefaultValues({
487
555
  projectRoot,
488
556
  exp,
@@ -1 +1 @@
1
- {"version":3,"file":"Config.js","names":["_jsonFile","data","_interopRequireDefault","require","_requireUtils","_deepmerge","_glob","_path","_semver","_slugify","_getConfig","_getExpoSDKVersion","_withConfigPlugins","_withInternal","_resolvePackageJson","_Config","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","e","__esModule","default","hasWarnedAboutRootConfig","reduceExpoObject","config","expo","filter","length","ansiYellow","str","ansiGray","ansiBold","plural","console","warn","map","join","mods","getSupportedPlatforms","projectRoot","exp","platforms","resolveFrom","push","experiments","outOfTreePlatforms","getPlatformsFromConfig","platform","getConfig","options","paths","getConfigFilePaths","rawStaticConfig","staticConfigPath","getStaticConfig","rootConfig","staticConfig","packageJson","packageJsonPath","getPackageJsonAndPath","fillAndReturnConfig","dynamicConfigObjectType","mayHaveUnusedStaticConfig","configWithDefaultValues","ensureConfigHasDefaultValues","pkg","skipSDKVersionRequirement","dynamicConfigPath","hasUnusedStaticConfig","isModdedConfig","withConfigPlugins","skipPlugins","isPublicConfig","_internal","hooks","ios","android","updates","codeSigningCertificate","codeSigningMetadata","getContextConfig","exportedObjectType","rawDynamicConfig","getDynamicConfig","dynamicConfig","getPackageJson","getRootPackageJsonPath","JsonFile","read","getDynamicConfigFilePath","getStaticConfigFilePath","DYNAMIC_CONFIG_EXTS","extensions","modifyConfigAsync","modifications","readOptions","writeOptions","isDryRun","dryRun","outputConfig","mergeConfigModifications","configPath","path","writeAsync","json5","type","message","relative","newConfig","newConfighasModifications","isMatchingObject","plugins","modifiedExpoConfig","deepMerge","existingPlugins","fromEntries","definition","undefined","plugin","pluginName","pluginProps","Array","isArray","existingPlugin","existingPluginName","finalizedConfig","expectedValues","actualValues","withInternal","pkgName","name","basename","pkgVersion","version","pkgWithDefaults","slug","slugify","toLowerCase","description","expWithDefaults","sdkVersion","getExpoSDKVersion","error","DEFAULT_BUILD_PATH","getWebOutputPath","process","env","WEBPACK_BUILD_OUTPUT_PATH","web","build","output","getNameFromConfig","appManifest","appName","displayName","webName","getDefaultTarget","semver","lt","isBareWorkflowProject","dependencies","expokit","xcodeprojFiles","globSync","absolute","cwd","gradleFiles","getProjectConfigDescription","getProjectConfigDescriptionWithPaths","projectConfig","relativeDynamicConfigPath"],"sources":["../src/Config.ts"],"sourcesContent":["import type { ModConfig } from '@expo/config-plugins';\nimport type { JSONObject } from '@expo/json-file';\nimport JsonFile from '@expo/json-file';\nimport { resolveFrom } from '@expo/require-utils';\nimport deepMerge from 'deepmerge';\nimport { sync as globSync } from 'glob';\nimport path from 'path';\nimport semver from 'semver';\nimport slugify from 'slugify';\n\nimport type {\n AppJSONConfig,\n ConfigFilePaths,\n ExpoConfig,\n GetConfigOptions,\n PackageJSONConfig,\n Platform,\n ProjectConfig,\n ProjectTarget,\n WriteConfigOptions,\n} from './Config.types';\nimport { getDynamicConfig, getStaticConfig } from './getConfig';\nimport { getExpoSDKVersion } from './getExpoSDKVersion';\nimport { withConfigPlugins } from './plugins/withConfigPlugins';\nimport { withInternal } from './plugins/withInternal';\nimport { getRootPackageJsonPath } from './resolvePackageJson';\n\ntype SplitConfigs = { expo?: ExpoConfig; mods?: ModConfig };\n\nlet hasWarnedAboutRootConfig = false;\n\n/**\n * If a config has an `expo` object then that will be used as the config.\n * This method reduces out other top level values if an `expo` object exists.\n *\n * @param config Input config object to reduce\n */\nfunction reduceExpoObject(config?: any): SplitConfigs | null {\n if (!config) return config || null;\n\n if (config.expo && !hasWarnedAboutRootConfig) {\n const keys = Object.keys(config).filter((key) => key !== 'expo');\n if (keys.length) {\n hasWarnedAboutRootConfig = true;\n const ansiYellow = (str: string) => `\\u001B[33m${str}\\u001B[0m`;\n const ansiGray = (str: string) => `\\u001B[90m${str}\\u001B[0m`;\n const ansiBold = (str: string) => `\\u001B[1m${str}\\u001B[22m`;\n const plural = keys.length > 1;\n console.warn(\n ansiYellow(\n ansiBold('Warning: ') +\n `Root-level ${ansiBold(`\"expo\"`)} object found. Ignoring extra key${plural ? 's' : ''} in Expo config: ${keys\n .map((key) => `\"${key}\"`)\n .join(', ')}\\n` +\n ansiGray(`Learn more: https://expo.fyi/root-expo-object`)\n )\n );\n }\n }\n\n const { mods, ...expo } = config.expo ?? config;\n\n return {\n expo,\n mods,\n };\n}\n\n/**\n * Get all platforms that a project is currently capable of running.\n *\n * @param projectRoot\n * @param exp\n */\nfunction getSupportedPlatforms(projectRoot: string, exp: Partial<ExpoConfig>): Platform[] {\n const platforms: Platform[] = [];\n if (resolveFrom(projectRoot, 'react-native/package.json')) {\n platforms.push('ios', 'android');\n }\n if (resolveFrom(projectRoot, 'react-dom/package.json')) {\n platforms.push('web');\n }\n if (exp.experiments?.outOfTreePlatforms) {\n if (resolveFrom(projectRoot, 'react-native-tvos/package.json')) {\n platforms.push('tvos');\n }\n if (resolveFrom(projectRoot, 'react-native-macos/package.json')) {\n platforms.push('macos');\n }\n }\n return platforms;\n}\n\n/**\n * Resolves the platforms a project targets, as configured or detected.\n *\n * @param projectRoot\n * @param exp\n */\nexport function getPlatformsFromConfig(projectRoot: string, exp: Partial<ExpoConfig>): Platform[] {\n let platforms =\n (exp?.platforms as Platform[] | undefined) ?? getSupportedPlatforms(projectRoot, exp);\n // TODO(@kitten): Update when XDL schema is modified\n if (!exp.experiments?.outOfTreePlatforms) {\n platforms = platforms.filter(\n (platform) => platform === 'android' || platform === 'ios' || platform === 'web'\n );\n }\n return platforms;\n}\n\n/**\n * Evaluate the config for an Expo project.\n * If a function is exported from the `app.config.js` then a partial config will be passed as an argument.\n * The partial config is composed from any existing app.json, and certain fields from the `package.json` like name and description.\n *\n * If options.isPublicConfig is true, the Expo config will include only public-facing options (omitting private keys).\n * The resulting config should be suitable for hosting or embedding in a publicly readable location.\n *\n * **Example**\n * ```js\n * module.exports = function({ config }) {\n * // mutate the config before returning it.\n * config.slug = 'new slug'\n * return { expo: config };\n * }\n * ```\n *\n * **Supports**\n * - `app.config.ts`\n * - `app.config.js`\n * - `app.config.json`\n * - `app.json`\n *\n * @param projectRoot the root folder containing all of your application code\n * @param options enforce criteria for a project config\n */\nexport function getConfig(projectRoot: string, options: GetConfigOptions = {}): ProjectConfig {\n const paths = getConfigFilePaths(projectRoot);\n\n const rawStaticConfig = paths.staticConfigPath ? getStaticConfig(paths.staticConfigPath) : null;\n // For legacy reasons, always return an object.\n const rootConfig = (rawStaticConfig || {}) as AppJSONConfig;\n const staticConfig = reduceExpoObject(rawStaticConfig) || {};\n\n // Can only change the package.json location if an app.json or app.config.json exists\n const [packageJson, packageJsonPath] = getPackageJsonAndPath(projectRoot);\n\n function fillAndReturnConfig(\n config: SplitConfigs,\n dynamicConfigObjectType: string | null,\n mayHaveUnusedStaticConfig: boolean = false\n ) {\n const configWithDefaultValues = {\n ...ensureConfigHasDefaultValues({\n projectRoot,\n exp: config.expo || {},\n pkg: packageJson,\n skipSDKVersionRequirement: options.skipSDKVersionRequirement,\n paths,\n packageJsonPath,\n }),\n mods: config.mods,\n dynamicConfigObjectType,\n rootConfig,\n dynamicConfigPath: paths.dynamicConfigPath,\n staticConfigPath: paths.staticConfigPath,\n hasUnusedStaticConfig:\n !!paths.staticConfigPath && !!paths.dynamicConfigPath && mayHaveUnusedStaticConfig,\n };\n\n if (options.isModdedConfig) {\n // @ts-ignore: Add the mods back to the object.\n configWithDefaultValues.exp.mods = config.mods ?? null;\n }\n\n // Apply static json plugins, should be done after _internal\n configWithDefaultValues.exp = withConfigPlugins(\n configWithDefaultValues.exp,\n !!options.skipPlugins\n );\n\n if (!options.isModdedConfig) {\n // @ts-ignore: Delete mods added by static plugins when they won't have a chance to be evaluated\n delete configWithDefaultValues.exp.mods;\n }\n\n if (options.isPublicConfig) {\n // TODD(EvanBacon): Drop plugins array after it's been resolved.\n\n // Remove internal values with references to user's file paths from the public config.\n delete configWithDefaultValues.exp._internal;\n\n // hooks no longer exists in the typescript type but should still be removed\n if ('hooks' in configWithDefaultValues.exp) {\n delete configWithDefaultValues.exp.hooks;\n }\n if (configWithDefaultValues.exp.ios?.config) {\n delete configWithDefaultValues.exp.ios.config;\n }\n if (configWithDefaultValues.exp.android?.config) {\n delete configWithDefaultValues.exp.android.config;\n }\n\n delete configWithDefaultValues.exp.updates?.codeSigningCertificate;\n delete configWithDefaultValues.exp.updates?.codeSigningMetadata;\n }\n\n return configWithDefaultValues;\n }\n\n // Fill in the static config\n function getContextConfig(config: SplitConfigs) {\n return ensureConfigHasDefaultValues({\n projectRoot,\n exp: config.expo || {},\n pkg: packageJson,\n skipSDKVersionRequirement: true,\n paths,\n packageJsonPath,\n }).exp;\n }\n\n if (paths.dynamicConfigPath) {\n // No app.config.json or app.json but app.config.js\n const {\n exportedObjectType,\n config: rawDynamicConfig,\n mayHaveUnusedStaticConfig,\n } = getDynamicConfig(paths.dynamicConfigPath, {\n projectRoot,\n staticConfigPath: paths.staticConfigPath,\n packageJsonPath,\n config: getContextConfig(staticConfig),\n });\n // Allow for the app.config.js to `export default null;`\n // Use `dynamicConfigPath` to detect if a dynamic config exists.\n const dynamicConfig = reduceExpoObject(rawDynamicConfig) || {};\n return fillAndReturnConfig(dynamicConfig, exportedObjectType, mayHaveUnusedStaticConfig);\n }\n\n // No app.config.js but json or no config\n return fillAndReturnConfig(staticConfig || {}, null);\n}\n\nexport function getPackageJson(projectRoot: string): PackageJSONConfig {\n const [pkg] = getPackageJsonAndPath(projectRoot);\n return pkg;\n}\n\nfunction getPackageJsonAndPath(projectRoot: string): [PackageJSONConfig, string] {\n const packageJsonPath = getRootPackageJsonPath(projectRoot);\n return [JsonFile.read(packageJsonPath), packageJsonPath];\n}\n\n/**\n * Get the static and dynamic config paths for a project. Also accounts for custom paths.\n *\n * @param projectRoot\n */\nexport function getConfigFilePaths(projectRoot: string): ConfigFilePaths {\n return {\n dynamicConfigPath: getDynamicConfigFilePath(projectRoot),\n staticConfigPath: getStaticConfigFilePath(projectRoot),\n };\n}\n\nconst DYNAMIC_CONFIG_EXTS = ['.ts', '.mts', '.cts', '.mjs', '.cjs', '.js'];\n\nfunction getDynamicConfigFilePath(projectRoot: string): string | null {\n return resolveFrom(projectRoot, './app.config', { extensions: DYNAMIC_CONFIG_EXTS });\n}\n\nfunction getStaticConfigFilePath(projectRoot: string): string | null {\n return resolveFrom(projectRoot, './app.config.json') ?? resolveFrom(projectRoot, './app.json');\n}\n\n/**\n * Attempt to modify an Expo project config.\n * This will only fully work if the project is using static configs only.\n * Otherwise 'warn' | 'fail' will return with a message about why the config couldn't be updated.\n * The potentially modified config object will be returned for testing purposes.\n *\n * @param projectRoot\n * @param modifications modifications to make to an existing config\n * @param readOptions options for reading the current config file\n * @param writeOptions If true, the static config file will not be rewritten\n */\nexport async function modifyConfigAsync(\n projectRoot: string,\n modifications: Partial<ExpoConfig>,\n readOptions: GetConfigOptions = {},\n writeOptions: WriteConfigOptions = {}\n): Promise<{\n type: 'success' | 'warn' | 'fail';\n message?: string;\n config: ExpoConfig | null;\n}> {\n const config = getConfig(projectRoot, readOptions);\n const isDryRun = writeOptions.dryRun;\n\n // Create or modify the static config, when not using dynamic config\n if (!config.dynamicConfigPath) {\n const outputConfig = mergeConfigModifications(config, modifications);\n\n if (!isDryRun) {\n const configPath = config.staticConfigPath ?? path.join(projectRoot, 'app.json');\n await JsonFile.writeAsync(configPath, outputConfig, { json5: false });\n }\n\n return { type: 'success', config: outputConfig.expo ?? outputConfig };\n }\n\n // Attempt to write to a function-like dynamic config, when used with a static config\n if (\n config.staticConfigPath &&\n config.dynamicConfigObjectType === 'function' &&\n !modifications.hasOwnProperty('plugins') // We don't know what plugins are in dynamic configs\n ) {\n const outputConfig = mergeConfigModifications(config, modifications);\n\n if (isDryRun) {\n return {\n type: 'warn',\n message: `Cannot verify config modifications in dry-run mode for config at: ${path.relative(projectRoot, config.dynamicConfigPath)}`,\n config: null,\n };\n }\n\n // Attempt to write the static config with the config modifications\n await JsonFile.writeAsync(config.staticConfigPath, outputConfig, { json5: false });\n\n // Verify that the dynamic config is using the static config\n const newConfig = getConfig(projectRoot, readOptions);\n const newConfighasModifications = isMatchingObject(modifications, newConfig.exp);\n if (newConfighasModifications) {\n return {\n type: 'success',\n config: newConfig.exp,\n };\n }\n\n // Rollback the changes when the reloaded config did not include the modifications\n await JsonFile.writeAsync(config.staticConfigPath, config.rootConfig, { json5: false });\n }\n\n // We cannot automatically write to a dynamic config\n return {\n type: 'warn',\n message: `Cannot automatically write to dynamic config at: ${path.relative(\n projectRoot,\n config.dynamicConfigPath\n )}`,\n config: null,\n };\n}\n\n/**\n * Merge the config modifications, using an optional possible top-level `expo` object.\n * Note, changes in the plugins are merged differently to avoid duplicate entries.\n */\nfunction mergeConfigModifications(\n config: ProjectConfig,\n { plugins, ...modifications }: Partial<ExpoConfig>\n): AppJSONConfig {\n const modifiedExpoConfig: ExpoConfig = !config.rootConfig.expo\n ? deepMerge(config.rootConfig, modifications)\n : deepMerge(config.rootConfig.expo, modifications);\n\n if (plugins?.length) {\n // When adding plugins, ensure the config has a plugin list\n if (!modifiedExpoConfig.plugins) {\n modifiedExpoConfig.plugins = [];\n }\n\n // Create a plugin lookup map\n const existingPlugins: Record<string, any> = Object.fromEntries(\n modifiedExpoConfig.plugins.map((definition) =>\n typeof definition === 'string' ? [definition, undefined] : definition\n )\n );\n\n for (const plugin of plugins) {\n // Unpack the plugin definition, using either the short (string) or normal (array) notation\n const [pluginName, pluginProps] = Array.isArray(plugin) ? plugin : [plugin];\n // Abort if the plugin definition is empty\n if (!pluginName) continue;\n\n // Add the plugin if it doesn't exist yet, including its properties\n if (!(pluginName in existingPlugins)) {\n modifiedExpoConfig.plugins.push(plugin);\n continue;\n }\n\n // If the plugin has properties, and it exists, merge the properties\n if (pluginProps) {\n modifiedExpoConfig.plugins = modifiedExpoConfig.plugins.map((existingPlugin) => {\n const [existingPluginName] = Array.isArray(existingPlugin)\n ? existingPlugin\n : [existingPlugin];\n\n // Do not modify other plugins\n if (existingPluginName !== pluginName) {\n return existingPlugin;\n }\n\n // Add the props to the existing plugin entry\n if (typeof existingPlugin === 'string') {\n return [existingPlugin, pluginProps];\n }\n\n // Merge the props to the existing plugin properties\n if (Array.isArray(existingPlugin) && existingPlugin[0]) {\n return [existingPlugin[0], deepMerge(existingPlugin[1] ?? {}, pluginProps)];\n }\n\n return existingPlugin;\n });\n continue;\n }\n\n // If the same plugin exists with properties, and the modification does not contain properties, ignore\n }\n }\n\n const finalizedConfig = !config.rootConfig.expo\n ? modifiedExpoConfig\n : { ...config.rootConfig, expo: modifiedExpoConfig };\n\n return finalizedConfig as AppJSONConfig;\n}\n\nfunction isMatchingObject<T extends Record<string, any>>(\n expectedValues: T,\n actualValues: T\n): boolean {\n for (const key in expectedValues) {\n if (!expectedValues.hasOwnProperty(key)) {\n continue;\n }\n\n if (typeof expectedValues[key] === 'object' && actualValues[key] !== null) {\n if (!isMatchingObject(expectedValues[key], actualValues[key])) {\n return false;\n }\n } else {\n if (expectedValues[key] !== actualValues[key]) {\n return false;\n }\n }\n }\n return true;\n}\n\nfunction ensureConfigHasDefaultValues({\n projectRoot,\n exp,\n pkg,\n paths,\n packageJsonPath,\n skipSDKVersionRequirement = false,\n}: {\n projectRoot: string;\n exp: Partial<ExpoConfig> | null;\n pkg: JSONObject;\n skipSDKVersionRequirement?: boolean;\n paths?: ConfigFilePaths;\n packageJsonPath?: string;\n}): { exp: ExpoConfig; pkg: PackageJSONConfig } {\n if (!exp) {\n exp = {};\n }\n exp = withInternal(exp as any, {\n projectRoot,\n ...(paths ?? {}),\n packageJsonPath,\n });\n // Defaults for package.json fields\n const pkgName = typeof pkg.name === 'string' ? pkg.name : path.basename(projectRoot);\n const pkgVersion = typeof pkg.version === 'string' ? pkg.version : '1.0.0';\n\n const pkgWithDefaults = { ...pkg, name: pkgName, version: pkgVersion };\n\n // Defaults for app.json/app.config.js fields\n const name = exp.name ?? pkgName;\n const slug = exp.slug ?? slugify(name.toLowerCase());\n const version = exp.version ?? pkgVersion;\n let description = exp.description;\n if (!description && typeof pkg.description === 'string') {\n description = pkg.description;\n }\n\n const expWithDefaults = { ...exp, name, slug, version, description };\n\n let sdkVersion;\n try {\n sdkVersion = getExpoSDKVersion(projectRoot, expWithDefaults);\n } catch (error) {\n if (!skipSDKVersionRequirement) throw error;\n }\n\n // TODO(@kitten): Remove once platforms are updated in XDL schema\n const platforms = getPlatformsFromConfig(projectRoot, exp) as NonNullable<\n ExpoConfig['platforms']\n >;\n\n return {\n exp: { ...expWithDefaults, sdkVersion, platforms },\n pkg: pkgWithDefaults,\n };\n}\n\nconst DEFAULT_BUILD_PATH = `web-build`;\n\nexport function getWebOutputPath(config: { [key: string]: any } = {}): string {\n if (process.env.WEBPACK_BUILD_OUTPUT_PATH) {\n return process.env.WEBPACK_BUILD_OUTPUT_PATH;\n }\n const expo = config.expo || config || {};\n return expo?.web?.build?.output || DEFAULT_BUILD_PATH;\n}\n\nexport function getNameFromConfig(exp: Record<string, any> = {}): {\n appName?: string;\n webName?: string;\n} {\n // For RN CLI support\n const appManifest = exp.expo || exp;\n const { web = {} } = appManifest;\n\n // rn-cli apps use a displayName value as well.\n const appName = exp.displayName || appManifest.displayName || appManifest.name;\n const webName = web.name || appName;\n\n return {\n appName,\n webName,\n };\n}\n\nexport function getDefaultTarget(\n projectRoot: string,\n exp?: Pick<ExpoConfig, 'sdkVersion'>\n): ProjectTarget {\n exp ??= getConfig(projectRoot, { skipSDKVersionRequirement: true }).exp;\n\n // before SDK 37, always default to managed to preserve previous behavior\n if (exp.sdkVersion && exp.sdkVersion !== 'UNVERSIONED' && semver.lt(exp.sdkVersion, '37.0.0')) {\n return 'managed';\n }\n return isBareWorkflowProject(projectRoot) ? 'bare' : 'managed';\n}\n\nfunction isBareWorkflowProject(projectRoot: string): boolean {\n const [pkg] = getPackageJsonAndPath(projectRoot);\n\n // TODO: Drop this\n if (pkg.dependencies && pkg.dependencies.expokit) {\n return false;\n }\n\n const xcodeprojFiles = globSync('ios/**/*.xcodeproj', {\n absolute: true,\n cwd: projectRoot,\n });\n if (xcodeprojFiles.length) {\n return true;\n }\n const gradleFiles = globSync('android/**/*.gradle', {\n absolute: true,\n cwd: projectRoot,\n });\n if (gradleFiles.length) {\n return true;\n }\n\n return false;\n}\n\n/**\n * Return a useful name describing the project config.\n * - dynamic: app.config.js\n * - static: app.json\n * - custom path app config relative to root folder\n * - both: app.config.js or app.json\n */\nexport function getProjectConfigDescription(projectRoot: string): string {\n const paths = getConfigFilePaths(projectRoot);\n return getProjectConfigDescriptionWithPaths(projectRoot, paths);\n}\n\n/**\n * Returns a string describing the configurations used for the given project root.\n * Will return null if no config is found.\n *\n * @param projectRoot\n * @param projectConfig\n */\nexport function getProjectConfigDescriptionWithPaths(\n projectRoot: string,\n projectConfig: ConfigFilePaths\n): string {\n if (projectConfig.dynamicConfigPath) {\n const relativeDynamicConfigPath = path.relative(projectRoot, projectConfig.dynamicConfigPath);\n if (projectConfig.staticConfigPath) {\n return `${relativeDynamicConfigPath} or ${path.relative(\n projectRoot,\n projectConfig.staticConfigPath\n )}`;\n }\n return relativeDynamicConfigPath;\n } else if (projectConfig.staticConfigPath) {\n return path.relative(projectRoot, projectConfig.staticConfigPath);\n }\n // If a config doesn't exist, our tooling will generate a static app.json\n return 'app.json';\n}\n\nexport * from './Config.types';\n"],"mappings":";;;;;;;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EACP,CAAC,CAAC;EACF,IAAI+H,WAAW,CAAC3I,MAAM,EAAE;IACtB,OAAO,IAAI;EACb;EAEA,OAAO,KAAK;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS4I,2BAA2BA,CAAChI,WAAmB,EAAU;EACvE,MAAMW,KAAK,GAAGC,kBAAkB,CAACZ,WAAW,CAAC;EAC7C,OAAOiI,oCAAoC,CAACjI,WAAW,EAAEW,KAAK,CAAC;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASsH,oCAAoCA,CAClDjI,WAAmB,EACnBkI,aAA8B,EACtB;EACR,IAAIA,aAAa,CAACtG,iBAAiB,EAAE;IACnC,MAAMuG,yBAAyB,GAAGpE,eAAI,CAACK,QAAQ,CAACpE,WAAW,EAAEkI,aAAa,CAACtG,iBAAiB,CAAC;IAC7F,IAAIsG,aAAa,CAACpH,gBAAgB,EAAE;MAClC,OAAO,GAAGqH,yBAAyB,OAAOpE,eAAI,CAACK,QAAQ,CACrDpE,WAAW,EACXkI,aAAa,CAACpH,gBAChB,CAAC,EAAE;IACL;IACA,OAAOqH,yBAAyB;EAClC,CAAC,MAAM,IAAID,aAAa,CAACpH,gBAAgB,EAAE;IACzC,OAAOiD,eAAI,CAACK,QAAQ,CAACpE,WAAW,EAAEkI,aAAa,CAACpH,gBAAgB,CAAC;EACnE;EACA;EACA,OAAO,UAAU;AACnB","ignoreList":[]}
1
+ {"version":3,"file":"Config.js","names":["_jsonFile","data","_interopRequireDefault","require","_requireUtils","_glob","_path","_semver","_slugify","_util","_getConfig","_getExpoSDKVersion","_mergeConfig","_withConfigPlugins","_withInternal","_resolvePackageJson","_Config","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","e","__esModule","default","hasWarnedAboutRootConfig","reduceExpoObject","config","expo","filter","length","ansiYellow","str","ansiGray","ansiBold","plural","console","warn","map","join","mods","getSupportedPlatforms","projectRoot","exp","platforms","resolveFrom","push","experiments","outOfTreePlatforms","getPlatformsFromConfig","platform","getConfig","options","paths","getConfigFilePaths","rawStaticConfig","staticConfigPath","getStaticConfig","rootConfig","staticConfig","packageJson","packageJsonPath","getPackageJsonAndPath","fillAndReturnConfig","dynamicConfigObjectType","mayHaveUnusedStaticConfig","configWithDefaultValues","ensureConfigHasDefaultValues","pkg","skipSDKVersionRequirement","dynamicConfigPath","hasUnusedStaticConfig","isModdedConfig","withConfigPlugins","skipPlugins","isPublicConfig","_internal","hooks","ios","android","updates","codeSigningCertificate","codeSigningMetadata","getContextConfig","exportedObjectType","rawDynamicConfig","getDynamicConfig","dynamicConfig","getPackageJson","getRootPackageJsonPath","JsonFile","read","getDynamicConfigFilePath","getStaticConfigFilePath","DYNAMIC_CONFIG_EXTS","extensions","modifyConfigAsync","modifications","readOptions","writeOptions","isDryRun","dryRun","outputConfig","mergeConfigModifications","configPath","path","writeAsync","json5","type","hasOwn","message","relative","newConfig","newConfighasModifications","hasConfigModifications","mergeArraysWithoutDuplicates","target","source","result","item","some","existing","isDeepStrictEqual","plugins","baseConfig","modifiedExpoConfig","mergeConfig","isPlainObject","existingPlugins","fromEntries","definition","undefined","plugin","pluginName","pluginProps","Array","isArray","existingPlugin","existingPluginName","finalizedConfig","value","otherModifications","isMatchingObject","expectedValues","actualValues","matchArraysAsSets","isMatchingArray","expectedItems","actualItems","every","expected","actual","withInternal","pkgName","name","basename","pkgVersion","version","pkgWithDefaults","slug","slugify","toLowerCase","description","expWithDefaults","sdkVersion","getExpoSDKVersion","error","DEFAULT_BUILD_PATH","getWebOutputPath","process","env","WEBPACK_BUILD_OUTPUT_PATH","web","build","output","getNameFromConfig","appManifest","appName","displayName","webName","getDefaultTarget","semver","lt","isBareWorkflowProject","dependencies","expokit","xcodeprojFiles","globSync","absolute","cwd","gradleFiles","getProjectConfigDescription","getProjectConfigDescriptionWithPaths","projectConfig","relativeDynamicConfigPath"],"sources":["../src/Config.ts"],"sourcesContent":["import type { ModConfig } from '@expo/config-plugins';\nimport type { JSONObject } from '@expo/json-file';\nimport JsonFile from '@expo/json-file';\nimport { resolveFrom } from '@expo/require-utils';\nimport { sync as globSync } from 'glob';\nimport path from 'path';\nimport semver from 'semver';\nimport slugify from 'slugify';\nimport { isDeepStrictEqual } from 'util';\n\nimport type {\n AppJSONConfig,\n ConfigFilePaths,\n ExpoConfig,\n GetConfigOptions,\n PackageJSONConfig,\n Platform,\n ProjectConfig,\n ProjectTarget,\n WriteConfigOptions,\n} from './Config.types';\nimport { getDynamicConfig, getStaticConfig } from './getConfig';\nimport { getExpoSDKVersion } from './getExpoSDKVersion';\nimport { mergeConfig } from './mergeConfig';\nimport { withConfigPlugins } from './plugins/withConfigPlugins';\nimport { withInternal } from './plugins/withInternal';\nimport { getRootPackageJsonPath } from './resolvePackageJson';\n\ntype SplitConfigs = { expo?: ExpoConfig; mods?: ModConfig };\n\nlet hasWarnedAboutRootConfig = false;\n\n/**\n * If a config has an `expo` object then that will be used as the config.\n * This method reduces out other top level values if an `expo` object exists.\n *\n * @param config Input config object to reduce\n */\nfunction reduceExpoObject(config?: any): SplitConfigs | null {\n if (!config) return config || null;\n\n if (config.expo && !hasWarnedAboutRootConfig) {\n const keys = Object.keys(config).filter((key) => key !== 'expo');\n if (keys.length) {\n hasWarnedAboutRootConfig = true;\n const ansiYellow = (str: string) => `\\u001B[33m${str}\\u001B[0m`;\n const ansiGray = (str: string) => `\\u001B[90m${str}\\u001B[0m`;\n const ansiBold = (str: string) => `\\u001B[1m${str}\\u001B[22m`;\n const plural = keys.length > 1;\n console.warn(\n ansiYellow(\n ansiBold('Warning: ') +\n `Root-level ${ansiBold(`\"expo\"`)} object found. Ignoring extra key${plural ? 's' : ''} in Expo config: ${keys\n .map((key) => `\"${key}\"`)\n .join(', ')}\\n` +\n ansiGray(`Learn more: https://expo.fyi/root-expo-object`)\n )\n );\n }\n }\n\n const { mods, ...expo } = config.expo ?? config;\n\n return {\n expo,\n mods,\n };\n}\n\n/**\n * Get all platforms that a project is currently capable of running.\n *\n * @param projectRoot\n * @param exp\n */\nfunction getSupportedPlatforms(projectRoot: string, exp: Partial<ExpoConfig>): Platform[] {\n const platforms: Platform[] = [];\n if (resolveFrom(projectRoot, 'react-native/package.json')) {\n platforms.push('ios', 'android');\n }\n if (resolveFrom(projectRoot, 'react-dom/package.json')) {\n platforms.push('web');\n }\n if (exp.experiments?.outOfTreePlatforms) {\n if (resolveFrom(projectRoot, 'react-native-tvos/package.json')) {\n platforms.push('tvos');\n }\n if (resolveFrom(projectRoot, 'react-native-macos/package.json')) {\n platforms.push('macos');\n }\n }\n return platforms;\n}\n\n/**\n * Resolves the platforms a project targets, as configured or detected.\n *\n * @param projectRoot\n * @param exp\n */\nexport function getPlatformsFromConfig(projectRoot: string, exp: Partial<ExpoConfig>): Platform[] {\n let platforms =\n (exp?.platforms as Platform[] | undefined) ?? getSupportedPlatforms(projectRoot, exp);\n // TODO(@kitten): Update when XDL schema is modified\n if (!exp.experiments?.outOfTreePlatforms) {\n platforms = platforms.filter(\n (platform) => platform === 'android' || platform === 'ios' || platform === 'web'\n );\n }\n return platforms;\n}\n\n/**\n * Evaluate the config for an Expo project.\n * If a function is exported from the `app.config.js` then a partial config will be passed as an argument.\n * The partial config is composed from any existing app.json, and certain fields from the `package.json` like name and description.\n *\n * If options.isPublicConfig is true, the Expo config will include only public-facing options (omitting private keys).\n * The resulting config should be suitable for hosting or embedding in a publicly readable location.\n *\n * **Example**\n * ```js\n * module.exports = function({ config }) {\n * // mutate the config before returning it.\n * config.slug = 'new slug'\n * return { expo: config };\n * }\n * ```\n *\n * **Supports**\n * - `app.config.ts`\n * - `app.config.js`\n * - `app.config.json`\n * - `app.json`\n *\n * @param projectRoot the root folder containing all of your application code\n * @param options enforce criteria for a project config\n */\nexport function getConfig(projectRoot: string, options: GetConfigOptions = {}): ProjectConfig {\n const paths = getConfigFilePaths(projectRoot);\n\n const rawStaticConfig = paths.staticConfigPath ? getStaticConfig(paths.staticConfigPath) : null;\n // For legacy reasons, always return an object.\n const rootConfig = (rawStaticConfig || {}) as AppJSONConfig;\n const staticConfig = reduceExpoObject(rawStaticConfig) || {};\n\n // Can only change the package.json location if an app.json or app.config.json exists\n const [packageJson, packageJsonPath] = getPackageJsonAndPath(projectRoot);\n\n function fillAndReturnConfig(\n config: SplitConfigs,\n dynamicConfigObjectType: string | null,\n mayHaveUnusedStaticConfig: boolean = false\n ) {\n const configWithDefaultValues = {\n ...ensureConfigHasDefaultValues({\n projectRoot,\n exp: config.expo || {},\n pkg: packageJson,\n skipSDKVersionRequirement: options.skipSDKVersionRequirement,\n paths,\n packageJsonPath,\n }),\n mods: config.mods,\n dynamicConfigObjectType,\n rootConfig,\n dynamicConfigPath: paths.dynamicConfigPath,\n staticConfigPath: paths.staticConfigPath,\n hasUnusedStaticConfig:\n !!paths.staticConfigPath && !!paths.dynamicConfigPath && mayHaveUnusedStaticConfig,\n };\n\n if (options.isModdedConfig) {\n // @ts-ignore: Add the mods back to the object.\n configWithDefaultValues.exp.mods = config.mods ?? null;\n }\n\n // Apply static json plugins, should be done after _internal\n configWithDefaultValues.exp = withConfigPlugins(\n configWithDefaultValues.exp,\n !!options.skipPlugins\n );\n\n if (!options.isModdedConfig) {\n // @ts-ignore: Delete mods added by static plugins when they won't have a chance to be evaluated\n delete configWithDefaultValues.exp.mods;\n }\n\n if (options.isPublicConfig) {\n // TODD(EvanBacon): Drop plugins array after it's been resolved.\n\n // Remove internal values with references to user's file paths from the public config.\n delete configWithDefaultValues.exp._internal;\n\n // hooks no longer exists in the typescript type but should still be removed\n if ('hooks' in configWithDefaultValues.exp) {\n delete configWithDefaultValues.exp.hooks;\n }\n if (configWithDefaultValues.exp.ios?.config) {\n delete configWithDefaultValues.exp.ios.config;\n }\n if (configWithDefaultValues.exp.android?.config) {\n delete configWithDefaultValues.exp.android.config;\n }\n\n delete configWithDefaultValues.exp.updates?.codeSigningCertificate;\n delete configWithDefaultValues.exp.updates?.codeSigningMetadata;\n }\n\n return configWithDefaultValues;\n }\n\n // Fill in the static config\n function getContextConfig(config: SplitConfigs) {\n return ensureConfigHasDefaultValues({\n projectRoot,\n exp: config.expo || {},\n pkg: packageJson,\n skipSDKVersionRequirement: true,\n paths,\n packageJsonPath,\n }).exp;\n }\n\n if (paths.dynamicConfigPath) {\n // No app.config.json or app.json but app.config.js\n const {\n exportedObjectType,\n config: rawDynamicConfig,\n mayHaveUnusedStaticConfig,\n } = getDynamicConfig(paths.dynamicConfigPath, {\n projectRoot,\n staticConfigPath: paths.staticConfigPath,\n packageJsonPath,\n config: getContextConfig(staticConfig),\n });\n // Allow for the app.config.js to `export default null;`\n // Use `dynamicConfigPath` to detect if a dynamic config exists.\n const dynamicConfig = reduceExpoObject(rawDynamicConfig) || {};\n return fillAndReturnConfig(dynamicConfig, exportedObjectType, mayHaveUnusedStaticConfig);\n }\n\n // No app.config.js but json or no config\n return fillAndReturnConfig(staticConfig || {}, null);\n}\n\nexport function getPackageJson(projectRoot: string): PackageJSONConfig {\n const [pkg] = getPackageJsonAndPath(projectRoot);\n return pkg;\n}\n\nfunction getPackageJsonAndPath(projectRoot: string): [PackageJSONConfig, string] {\n const packageJsonPath = getRootPackageJsonPath(projectRoot);\n return [JsonFile.read(packageJsonPath), packageJsonPath];\n}\n\n/**\n * Get the static and dynamic config paths for a project. Also accounts for custom paths.\n *\n * @param projectRoot\n */\nexport function getConfigFilePaths(projectRoot: string): ConfigFilePaths {\n return {\n dynamicConfigPath: getDynamicConfigFilePath(projectRoot),\n staticConfigPath: getStaticConfigFilePath(projectRoot),\n };\n}\n\nconst DYNAMIC_CONFIG_EXTS = ['.ts', '.mts', '.cts', '.mjs', '.cjs', '.js'];\n\nfunction getDynamicConfigFilePath(projectRoot: string): string | null {\n return resolveFrom(projectRoot, './app.config', { extensions: DYNAMIC_CONFIG_EXTS });\n}\n\nfunction getStaticConfigFilePath(projectRoot: string): string | null {\n return resolveFrom(projectRoot, './app.config.json') ?? resolveFrom(projectRoot, './app.json');\n}\n\n/**\n * Attempt to modify an Expo project config.\n * This will only fully work if the project is using static configs only.\n * Otherwise 'warn' | 'fail' will return with a message about why the config couldn't be updated.\n * The potentially modified config object will be returned for testing purposes.\n *\n * @param projectRoot\n * @param modifications modifications to make to an existing config\n * @param readOptions options for reading the current config file\n * @param writeOptions If true, the static config file will not be rewritten\n */\nexport async function modifyConfigAsync(\n projectRoot: string,\n modifications: Partial<ExpoConfig>,\n readOptions: GetConfigOptions = {},\n writeOptions: WriteConfigOptions = {}\n): Promise<{\n type: 'success' | 'warn' | 'fail';\n message?: string;\n config: ExpoConfig | null;\n}> {\n const config = getConfig(projectRoot, readOptions);\n const isDryRun = writeOptions.dryRun;\n\n // Create or modify the static config, when not using dynamic config\n if (!config.dynamicConfigPath) {\n const outputConfig = mergeConfigModifications(config, modifications);\n\n if (!isDryRun) {\n const configPath = config.staticConfigPath ?? path.join(projectRoot, 'app.json');\n await JsonFile.writeAsync(configPath, outputConfig, { json5: false });\n }\n\n return { type: 'success', config: outputConfig.expo ?? outputConfig };\n }\n\n // Attempt to write to a function-like dynamic config, when used with a static config\n if (\n config.staticConfigPath &&\n config.dynamicConfigObjectType === 'function' &&\n !Object.hasOwn(modifications, 'plugins') // We don't know what plugins are in dynamic configs\n ) {\n const outputConfig = mergeConfigModifications(config, modifications);\n\n if (isDryRun) {\n return {\n type: 'warn',\n message: `Cannot verify config modifications in dry-run mode for config at: ${path.relative(projectRoot, config.dynamicConfigPath)}`,\n config: null,\n };\n }\n\n // Attempt to write the static config with the config modifications\n await JsonFile.writeAsync(config.staticConfigPath, outputConfig, { json5: false });\n\n // Verify that the dynamic config is using the static config\n const newConfig = getConfig(projectRoot, readOptions);\n const newConfighasModifications = hasConfigModifications(modifications, newConfig.exp);\n if (newConfighasModifications) {\n return {\n type: 'success',\n config: newConfig.exp,\n };\n }\n\n // Rollback the changes when the reloaded config did not include the modifications\n await JsonFile.writeAsync(config.staticConfigPath, config.rootConfig, { json5: false });\n }\n\n // We cannot automatically write to a dynamic config\n return {\n type: 'warn',\n message: `Cannot automatically write to dynamic config at: ${path.relative(\n projectRoot,\n config.dynamicConfigPath\n )}`,\n config: null,\n };\n}\n\n/**\n * Append the source items to the target array, then remove duplicate entries, keeping the first\n * occurrence. Used only for `updates`, whose arrays are sets: `eas update:configure` sends the\n * existing `updates` object back with a new `url`, and the default merge would write each existing\n * entry twice. Other arrays keep the default merge, because plugins can depend on it.\n */\nfunction mergeArraysWithoutDuplicates(target: unknown[], source: unknown[]): unknown[] {\n const result: unknown[] = [];\n for (const item of [...target, ...source]) {\n if (!result.some((existing) => isDeepStrictEqual(existing, item))) {\n result.push(item);\n }\n }\n return result;\n}\n\n/**\n * Merge the config modifications, using an optional possible top-level `expo` object.\n * Note, changes in the plugins are merged differently to avoid duplicate entries.\n */\nfunction mergeConfigModifications(\n config: ProjectConfig,\n { plugins, ...modifications }: Partial<ExpoConfig>\n): AppJSONConfig {\n const baseConfig: Partial<ExpoConfig> = config.rootConfig.expo || config.rootConfig;\n const modifiedExpoConfig = mergeConfig<ExpoConfig>(baseConfig, modifications);\n if (isPlainObject(modifications.updates)) {\n modifiedExpoConfig.updates = mergeConfig(\n isPlainObject(baseConfig.updates) ? baseConfig.updates : {},\n modifications.updates,\n mergeArraysWithoutDuplicates\n );\n }\n\n if (plugins?.length) {\n // When adding plugins, ensure the config has a plugin list\n if (!modifiedExpoConfig.plugins) {\n modifiedExpoConfig.plugins = [];\n }\n\n // Create a plugin lookup map\n const existingPlugins: Record<string, any> = Object.fromEntries(\n modifiedExpoConfig.plugins.map((definition) =>\n typeof definition === 'string' ? [definition, undefined] : definition\n )\n );\n\n for (const plugin of plugins) {\n // Unpack the plugin definition, using either the short (string) or normal (array) notation\n const [pluginName, pluginProps] = Array.isArray(plugin) ? plugin : [plugin];\n // Abort if the plugin definition is empty\n if (!pluginName) continue;\n\n // Add the plugin if it doesn't exist yet, including its properties\n if (!Object.hasOwn(existingPlugins, pluginName)) {\n modifiedExpoConfig.plugins.push(plugin);\n continue;\n }\n\n // If the plugin has properties, and it exists, merge the properties\n if (pluginProps) {\n modifiedExpoConfig.plugins = modifiedExpoConfig.plugins.map((existingPlugin) => {\n const [existingPluginName] = Array.isArray(existingPlugin)\n ? existingPlugin\n : [existingPlugin];\n\n // Do not modify other plugins\n if (existingPluginName !== pluginName) {\n return existingPlugin;\n }\n\n // Add the props to the existing plugin entry\n if (typeof existingPlugin === 'string') {\n return [existingPlugin, pluginProps];\n }\n\n // Merge the props to the existing plugin properties\n if (Array.isArray(existingPlugin) && existingPlugin[0]) {\n return [existingPlugin[0], mergeConfig(existingPlugin[1] ?? {}, pluginProps)];\n }\n\n return existingPlugin;\n });\n continue;\n }\n\n // If the same plugin exists with properties, and the modification does not contain properties, ignore\n }\n }\n\n const finalizedConfig = !config.rootConfig.expo\n ? modifiedExpoConfig\n : { ...config.rootConfig, expo: modifiedExpoConfig };\n\n return finalizedConfig as AppJSONConfig;\n}\n\nfunction isPlainObject(value: unknown): value is Record<string, any> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\n/**\n * `updates` arrays are merged as sets (see `mergeArraysWithoutDuplicates`), so they are compared\n * as sets. Arrays everywhere else are compared item by item, in order.\n */\nfunction hasConfigModifications(modifications: Partial<ExpoConfig>, config: ExpoConfig): boolean {\n const { updates, ...otherModifications } = modifications;\n if (!isMatchingObject(otherModifications, config)) {\n return false;\n }\n if (!('updates' in modifications)) {\n return true;\n }\n if (!isPlainObject(updates)) {\n return isMatchingObject<Record<string, any>>({ updates }, config);\n }\n return isPlainObject(config.updates) && isMatchingObject(updates, config.updates, true);\n}\n\nfunction isMatchingObject<T extends Record<string, any>>(\n expectedValues: T,\n actualValues: T,\n matchArraysAsSets = false\n): boolean {\n for (const key in expectedValues) {\n if (!Object.hasOwn(expectedValues, key)) {\n continue;\n }\n\n if (matchArraysAsSets && Array.isArray(expectedValues[key])) {\n if (!isMatchingArray(expectedValues[key], actualValues[key])) {\n return false;\n }\n } else if (typeof expectedValues[key] === 'object' && actualValues[key] !== null) {\n if (!isMatchingObject(expectedValues[key], actualValues[key], matchArraysAsSets)) {\n return false;\n }\n } else {\n if (expectedValues[key] !== actualValues[key]) {\n return false;\n }\n }\n }\n return true;\n}\n\n/**\n * An expected array matches when each of its items is in the actual array, regardless of order or\n * repeated items.\n */\nfunction isMatchingArray(expectedItems: unknown[], actualItems: unknown): boolean {\n if (!Array.isArray(actualItems)) {\n return false;\n }\n return expectedItems.every((expected) =>\n actualItems.some((actual) =>\n typeof expected === 'object' && expected !== null\n ? typeof actual === 'object' && actual !== null && isMatchingObject(expected, actual, true)\n : expected === actual\n )\n );\n}\n\nfunction ensureConfigHasDefaultValues({\n projectRoot,\n exp,\n pkg,\n paths,\n packageJsonPath,\n skipSDKVersionRequirement = false,\n}: {\n projectRoot: string;\n exp: Partial<ExpoConfig> | null;\n pkg: JSONObject;\n skipSDKVersionRequirement?: boolean;\n paths?: ConfigFilePaths;\n packageJsonPath?: string;\n}): { exp: ExpoConfig; pkg: PackageJSONConfig } {\n if (!exp) {\n exp = {};\n }\n exp = withInternal(exp as any, {\n projectRoot,\n ...(paths ?? {}),\n packageJsonPath,\n });\n // Defaults for package.json fields\n const pkgName = typeof pkg.name === 'string' ? pkg.name : path.basename(projectRoot);\n const pkgVersion = typeof pkg.version === 'string' ? pkg.version : '1.0.0';\n\n const pkgWithDefaults = { ...pkg, name: pkgName, version: pkgVersion };\n\n // Defaults for app.json/app.config.js fields\n const name = exp.name ?? pkgName;\n const slug = exp.slug ?? slugify(name.toLowerCase());\n const version = exp.version ?? pkgVersion;\n let description = exp.description;\n if (!description && typeof pkg.description === 'string') {\n description = pkg.description;\n }\n\n const expWithDefaults = { ...exp, name, slug, version, description };\n\n let sdkVersion;\n try {\n sdkVersion = getExpoSDKVersion(projectRoot, expWithDefaults);\n } catch (error) {\n if (!skipSDKVersionRequirement) throw error;\n }\n\n // TODO(@kitten): Remove once platforms are updated in XDL schema\n const platforms = getPlatformsFromConfig(projectRoot, exp) as NonNullable<\n ExpoConfig['platforms']\n >;\n\n return {\n exp: { ...expWithDefaults, sdkVersion, platforms },\n pkg: pkgWithDefaults,\n };\n}\n\nconst DEFAULT_BUILD_PATH = `web-build`;\n\nexport function getWebOutputPath(config: { [key: string]: any } = {}): string {\n if (process.env.WEBPACK_BUILD_OUTPUT_PATH) {\n return process.env.WEBPACK_BUILD_OUTPUT_PATH;\n }\n const expo = config.expo || config || {};\n return expo?.web?.build?.output || DEFAULT_BUILD_PATH;\n}\n\nexport function getNameFromConfig(exp: Record<string, any> = {}): {\n appName?: string;\n webName?: string;\n} {\n // For RN CLI support\n const appManifest = exp.expo || exp;\n const { web = {} } = appManifest;\n\n // rn-cli apps use a displayName value as well.\n const appName = exp.displayName || appManifest.displayName || appManifest.name;\n const webName = web.name || appName;\n\n return {\n appName,\n webName,\n };\n}\n\nexport function getDefaultTarget(\n projectRoot: string,\n exp?: Pick<ExpoConfig, 'sdkVersion'>\n): ProjectTarget {\n exp ??= getConfig(projectRoot, { skipSDKVersionRequirement: true }).exp;\n\n // before SDK 37, always default to managed to preserve previous behavior\n if (exp.sdkVersion && exp.sdkVersion !== 'UNVERSIONED' && semver.lt(exp.sdkVersion, '37.0.0')) {\n return 'managed';\n }\n return isBareWorkflowProject(projectRoot) ? 'bare' : 'managed';\n}\n\nfunction isBareWorkflowProject(projectRoot: string): boolean {\n const [pkg] = getPackageJsonAndPath(projectRoot);\n\n // TODO: Drop this\n if (pkg.dependencies && pkg.dependencies.expokit) {\n return false;\n }\n\n const xcodeprojFiles = globSync('ios/**/*.xcodeproj', {\n absolute: true,\n cwd: projectRoot,\n });\n if (xcodeprojFiles.length) {\n return true;\n }\n const gradleFiles = globSync('android/**/*.gradle', {\n absolute: true,\n cwd: projectRoot,\n });\n if (gradleFiles.length) {\n return true;\n }\n\n return false;\n}\n\n/**\n * Return a useful name describing the project config.\n * - dynamic: app.config.js\n * - static: app.json\n * - custom path app config relative to root folder\n * - both: app.config.js or app.json\n */\nexport function getProjectConfigDescription(projectRoot: string): string {\n const paths = getConfigFilePaths(projectRoot);\n return getProjectConfigDescriptionWithPaths(projectRoot, paths);\n}\n\n/**\n * Returns a string describing the configurations used for the given project root.\n * Will return null if no config is found.\n *\n * @param projectRoot\n * @param projectConfig\n */\nexport function getProjectConfigDescriptionWithPaths(\n projectRoot: string,\n projectConfig: ConfigFilePaths\n): string {\n if (projectConfig.dynamicConfigPath) {\n const relativeDynamicConfigPath = path.relative(projectRoot, projectConfig.dynamicConfigPath);\n if (projectConfig.staticConfigPath) {\n return `${relativeDynamicConfigPath} or ${path.relative(\n projectRoot,\n projectConfig.staticConfigPath\n )}`;\n }\n return relativeDynamicConfigPath;\n } else if (projectConfig.staticConfigPath) {\n return path.relative(projectRoot, projectConfig.staticConfigPath);\n }\n // If a config doesn't exist, our tooling will generate a static app.json\n return 'app.json';\n}\n\nexport * from './Config.types';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,cAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,aAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,MAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,KAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,MAAA;EAAA,MAAAL,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAG,KAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,QAAA;EAAA,MAAAN,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAA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 @@ function serializeAndEvaluate(val) {
22
22
  } else if (typeof val === 'object') {
23
23
  const output = {};
24
24
  for (const property in val) {
25
- if (val.hasOwnProperty(property)) {
25
+ // NOTE(@kitten): Filter __proto__ in each object serializer to avoid invoking the prototype setter.
26
+ if (property !== '__proto__' && Object.hasOwn(val, property)) {
26
27
  output[property] = serializeAndEvaluate(val[property]);
27
28
  }
28
29
  }
@@ -35,7 +36,7 @@ function serializeSkippingMods(val) {
35
36
  if (typeof val === 'object' && !Array.isArray(val)) {
36
37
  const output = {};
37
38
  for (const property in val) {
38
- if (val.hasOwnProperty(property)) {
39
+ if (property !== '__proto__' && Object.hasOwn(val, property)) {
39
40
  if (property === 'mods' || property === 'plugins') {
40
41
  // Don't serialize mods or plugins
41
42
  output[property] = val[property];
@@ -58,7 +59,7 @@ function serializeAndEvaluatePlugin(val) {
58
59
  } else if (typeof val === 'object') {
59
60
  const output = {};
60
61
  for (const property in val) {
61
- if (val.hasOwnProperty(property)) {
62
+ if (property !== '__proto__' && Object.hasOwn(val, property)) {
62
63
  output[property] = serializeAndEvaluatePlugin(val[property]);
63
64
  }
64
65
  }
@@ -71,7 +72,7 @@ function serializeAfterStaticPlugins(val) {
71
72
  if (typeof val === 'object' && !Array.isArray(val)) {
72
73
  const output = {};
73
74
  for (const property in val) {
74
- if (val.hasOwnProperty(property)) {
75
+ if (property !== '__proto__' && Object.hasOwn(val, property)) {
75
76
  if (property === 'mods') {
76
77
  // Don't serialize mods
77
78
  output[property] = val[property];
@@ -1 +1 @@
1
- {"version":3,"file":"Serialize.js","names":["_Errors","data","require","serializeAndEvaluate","val","includes","Array","isArray","map","output","property","hasOwnProperty","ConfigError","serializeSkippingMods","serializeAndEvaluatePlugin","name","serializeAfterStaticPlugins"],"sources":["../src/Serialize.ts"],"sourcesContent":["import { ConfigError } from './Errors';\n\nexport function serializeAndEvaluate(val: any): any {\n if (['undefined', 'string', 'boolean', 'number', 'bigint'].includes(typeof val)) {\n return val;\n } else if (typeof val === 'function') {\n // TODO: Bacon: Should we support async methods?\n return val();\n } else if (Array.isArray(val)) {\n return val.map(serializeAndEvaluate);\n } else if (typeof val === 'object') {\n const output: { [key: string]: any } = {};\n for (const property in val) {\n if (val.hasOwnProperty(property)) {\n output[property] = serializeAndEvaluate(val[property]);\n }\n }\n return output;\n }\n // symbol\n throw new ConfigError(`Expo config doesn't support \\`Symbols\\`: ${val}`, 'INVALID_CONFIG');\n}\n\nexport function serializeSkippingMods(val: any): any {\n if (typeof val === 'object' && !Array.isArray(val)) {\n const output: { [key: string]: any } = {};\n for (const property in val) {\n if (val.hasOwnProperty(property)) {\n if (property === 'mods' || property === 'plugins') {\n // Don't serialize mods or plugins\n output[property] = val[property];\n } else {\n output[property] = serializeAndEvaluate(val[property]);\n }\n }\n }\n return output;\n }\n return serializeAndEvaluate(val);\n}\n\nfunction serializeAndEvaluatePlugin(val: any): any {\n if (['undefined', 'string', 'boolean', 'number', 'bigint'].includes(typeof val)) {\n return val;\n } else if (typeof val === 'function') {\n return val.name || 'withAnonymous';\n } else if (Array.isArray(val)) {\n return val.map(serializeAndEvaluatePlugin);\n } else if (typeof val === 'object') {\n const output: { [key: string]: any } = {};\n for (const property in val) {\n if (val.hasOwnProperty(property)) {\n output[property] = serializeAndEvaluatePlugin(val[property]);\n }\n }\n return output;\n }\n // symbol\n throw new ConfigError(`Expo config doesn't support \\`Symbols\\`: ${val}`, 'INVALID_CONFIG');\n}\n\nexport function serializeAfterStaticPlugins(val: any): any {\n if (typeof val === 'object' && !Array.isArray(val)) {\n const output: { [key: string]: any } = {};\n for (const property in val) {\n if (val.hasOwnProperty(property)) {\n if (property === 'mods') {\n // Don't serialize mods\n output[property] = val[property];\n } else if (property === 'plugins' && Array.isArray(val[property])) {\n // Serialize the mods by removing any config plugins\n output[property] = val[property].map(serializeAndEvaluatePlugin);\n } else {\n output[property] = serializeAndEvaluate(val[property]);\n }\n }\n }\n return output;\n }\n return serializeAndEvaluate(val);\n}\n"],"mappings":";;;;;;AAAA,S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IAClD,MAAMK,MAA8B,GAAG,CAAC,CAAC;IACzC,KAAK,MAAMC,QAAQ,IAAIN,GAAG,EAAE;MAC1B,IAAIA,GAAG,CAACO,cAAc,CAACD,QAAQ,CAAC,EAAE;QAChC,IAAIA,QAAQ,KAAK,MAAM,EAAE;UACvB;UACAD,MAAM,CAACC,QAAQ,CAAC,GAAGN,GAAG,CAACM,QAAQ,CAAC;QAClC,CAAC,MAAM,IAAIA,QAAQ,KAAK,SAAS,IAAIJ,KAAK,CAACC,OAAO,CAACH,GAAG,CAACM,QAAQ,CAAC,CAAC,EAAE;UACjE;UACAD,MAAM,CAACC,QAAQ,CAAC,GAAGN,GAAG,CAACM,QAAQ,CAAC,CAACF,GAAG,CAACM,0BAA0B,CAAC;QAClE,CAAC,MAAM;UACLL,MAAM,CAACC,QAAQ,CAAC,GAAGP,oBAAoB,CAACC,GAAG,CAACM,QAAQ,CAAC,CAAC;QACxD;MACF;IACF;IACA,OAAOD,MAAM;EACf;EACA,OAAON,oBAAoB,CAACC,GAAG,CAAC;AAClC","ignoreList":[]}
1
+ {"version":3,"file":"Serialize.js","names":["_Errors","data","require","serializeAndEvaluate","val","includes","Array","isArray","map","output","property","Object","hasOwn","ConfigError","serializeSkippingMods","serializeAndEvaluatePlugin","name","serializeAfterStaticPlugins"],"sources":["../src/Serialize.ts"],"sourcesContent":["import { ConfigError } from './Errors';\n\nexport function serializeAndEvaluate(val: any): any {\n if (['undefined', 'string', 'boolean', 'number', 'bigint'].includes(typeof val)) {\n return val;\n } else if (typeof val === 'function') {\n // TODO: Bacon: Should we support async methods?\n return val();\n } else if (Array.isArray(val)) {\n return val.map(serializeAndEvaluate);\n } else if (typeof val === 'object') {\n const output: { [key: string]: any } = {};\n for (const property in val) {\n // NOTE(@kitten): Filter __proto__ in each object serializer to avoid invoking the prototype setter.\n if (property !== '__proto__' && Object.hasOwn(val, property)) {\n output[property] = serializeAndEvaluate(val[property]);\n }\n }\n return output;\n }\n // symbol\n throw new ConfigError(`Expo config doesn't support \\`Symbols\\`: ${val}`, 'INVALID_CONFIG');\n}\n\nexport function serializeSkippingMods(val: any): any {\n if (typeof val === 'object' && !Array.isArray(val)) {\n const output: { [key: string]: any } = {};\n for (const property in val) {\n if (property !== '__proto__' && Object.hasOwn(val, property)) {\n if (property === 'mods' || property === 'plugins') {\n // Don't serialize mods or plugins\n output[property] = val[property];\n } else {\n output[property] = serializeAndEvaluate(val[property]);\n }\n }\n }\n return output;\n }\n return serializeAndEvaluate(val);\n}\n\nfunction serializeAndEvaluatePlugin(val: any): any {\n if (['undefined', 'string', 'boolean', 'number', 'bigint'].includes(typeof val)) {\n return val;\n } else if (typeof val === 'function') {\n return val.name || 'withAnonymous';\n } else if (Array.isArray(val)) {\n return val.map(serializeAndEvaluatePlugin);\n } else if (typeof val === 'object') {\n const output: { [key: string]: any } = {};\n for (const property in val) {\n if (property !== '__proto__' && Object.hasOwn(val, property)) {\n output[property] = serializeAndEvaluatePlugin(val[property]);\n }\n }\n return output;\n }\n // symbol\n throw new ConfigError(`Expo config doesn't support \\`Symbols\\`: ${val}`, 'INVALID_CONFIG');\n}\n\nexport function serializeAfterStaticPlugins(val: any): any {\n if (typeof val === 'object' && !Array.isArray(val)) {\n const output: { [key: string]: any } = {};\n for (const property in val) {\n if (property !== '__proto__' && Object.hasOwn(val, property)) {\n if (property === 'mods') {\n // Don't serialize mods\n output[property] = val[property];\n } else if (property === 'plugins' && Array.isArray(val[property])) {\n // Serialize the mods by removing any config plugins\n output[property] = val[property].map(serializeAndEvaluatePlugin);\n } else {\n output[property] = serializeAndEvaluate(val[property]);\n }\n }\n }\n return output;\n }\n return serializeAndEvaluate(val);\n}\n"],"mappings":";;;;;;AAAA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,SAASE,oBAAoBA,CAACC,GAAQ,EAAO;EAClD,IAAI,CAA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MC,QAAQ,IAAIN,GAAG,EAAE;MAC1B,IAAIM,QAAQ,KAAK,WAAW,IAAIC,MAAM,CAACC,MAAM,CAACR,GAAG,EAAEM,QAAQ,CAAC,EAAE;QAC5D,IAAIA,QAAQ,KAAK,MAAM,EAAE;UACvB;UACAD,MAAM,CAACC,QAAQ,CAAC,GAAGN,GAAG,CAACM,QAAQ,CAAC;QAClC,CAAC,MAAM,IAAIA,QAAQ,KAAK,SAAS,IAAIJ,KAAK,CAACC,OAAO,CAACH,GAAG,CAACM,QAAQ,CAAC,CAAC,EAAE;UACjE;UACAD,MAAM,CAACC,QAAQ,CAAC,GAAGN,GAAG,CAACM,QAAQ,CAAC,CAACF,GAAG,CAACO,0BAA0B,CAAC;QAClE,CAAC,MAAM;UACLN,MAAM,CAACC,QAAQ,CAAC,GAAGP,oBAAoB,CAACC,GAAG,CAACM,QAAQ,CAAC,CAAC;QACxD;MACF;IACF;IACA,OAAOD,MAAM;EACf;EACA,OAAON,oBAAoB,CAACC,GAAG,CAAC;AAClC","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ type ArrayMerge = (target: any[], source: any[]) => any[];
2
+ export declare function mergeConfig<T>(target: Partial<T>, source: Partial<T>, arrayMerge?: ArrayMerge): T;
3
+ export {};
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.mergeConfig = mergeConfig;
5
+ function _Errors() {
6
+ const data = require("./Errors");
7
+ _Errors = function () {
8
+ return data;
9
+ };
10
+ return data;
11
+ }
12
+ function isMergeable(value) {
13
+ if (value === null || typeof value !== 'object') {
14
+ return false;
15
+ }
16
+ const tag = Object.prototype.toString.call(value);
17
+ return tag !== '[object Date]' && tag !== '[object RegExp]' && value.$$typeof !== Symbol.for('react.element');
18
+ }
19
+ function getEnumerableKeys(value) {
20
+ // NOTE(@kitten): Exclude __proto__ from both inputs so assignments cannot change the result's prototype.
21
+ return [...Object.keys(value).filter(key => key !== '__proto__'), ...Object.getOwnPropertySymbols(value).filter(key => Object.prototype.propertyIsEnumerable.call(value, key))];
22
+ }
23
+ function mergeConfig(target, source, arrayMerge) {
24
+ // NOTE(@kitten): Track active clones only; shared objects in separate branches are valid.
25
+ const ancestors = new WeakSet();
26
+ function clone(value) {
27
+ if (!isMergeable(value)) {
28
+ return value;
29
+ }
30
+ if (ancestors.has(value)) {
31
+ throw new (_Errors().ConfigError)('Cannot merge the Expo config because it contains a circular reference. Remove circular references from the config and its modifications.', 'INVALID_CONFIG');
32
+ }
33
+ ancestors.add(value);
34
+ try {
35
+ return merge(Array.isArray(value) ? [] : Object.create(null), value);
36
+ } finally {
37
+ ancestors.delete(value);
38
+ }
39
+ }
40
+ function merge(target, source) {
41
+ if (Array.isArray(target) !== Array.isArray(source)) {
42
+ return clone(source);
43
+ }
44
+ if (Array.isArray(source)) {
45
+ return arrayMerge ? arrayMerge(target, source) : target.concat(source).map(clone);
46
+ }
47
+ const result = {};
48
+ if (isMergeable(target)) {
49
+ for (const key of getEnumerableKeys(target)) {
50
+ result[key] = clone(target[key]);
51
+ }
52
+ }
53
+ for (const key of getEnumerableKeys(source)) {
54
+ // NOTE(@kitten): Treat inherited target values as absent so own data keys are not dropped or merged into prototypes.
55
+ const hasOwnValue = target != null && Object.hasOwn(target, key) && Object.prototype.propertyIsEnumerable.call(target, key);
56
+ result[key] = hasOwnValue && isMergeable(source[key]) ? merge(target[key], source[key]) : clone(source[key]);
57
+ }
58
+ return result;
59
+ }
60
+ return merge(target, source);
61
+ }
62
+ //# sourceMappingURL=mergeConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeConfig.js","names":["_Errors","data","require","isMergeable","value","tag","Object","prototype","toString","call","$$typeof","Symbol","for","getEnumerableKeys","keys","filter","key","getOwnPropertySymbols","propertyIsEnumerable","mergeConfig","target","source","arrayMerge","ancestors","WeakSet","clone","has","ConfigError","add","merge","Array","isArray","create","delete","concat","map","result","hasOwnValue","hasOwn"],"sources":["../src/mergeConfig.ts"],"sourcesContent":["import { ConfigError } from './Errors';\n\ntype ArrayMerge = (target: any[], source: any[]) => any[];\n\nfunction isMergeable(value: any): boolean {\n if (value === null || typeof value !== 'object') {\n return false;\n }\n const tag = Object.prototype.toString.call(value);\n return (\n tag !== '[object Date]' &&\n tag !== '[object RegExp]' &&\n value.$$typeof !== Symbol.for('react.element')\n );\n}\n\nfunction getEnumerableKeys(value: any): PropertyKey[] {\n // NOTE(@kitten): Exclude __proto__ from both inputs so assignments cannot change the result's prototype.\n return [\n ...Object.keys(value).filter((key) => key !== '__proto__'),\n ...Object.getOwnPropertySymbols(value).filter((key) =>\n Object.prototype.propertyIsEnumerable.call(value, key)\n ),\n ];\n}\n\nexport function mergeConfig<T>(target: Partial<T>, source: Partial<T>, arrayMerge?: ArrayMerge): T {\n // NOTE(@kitten): Track active clones only; shared objects in separate branches are valid.\n const ancestors = new WeakSet<object>();\n\n function clone(value: any): any {\n if (!isMergeable(value)) {\n return value;\n }\n if (ancestors.has(value)) {\n throw new ConfigError(\n 'Cannot merge the Expo config because it contains a circular reference. Remove circular references from the config and its modifications.',\n 'INVALID_CONFIG'\n );\n }\n ancestors.add(value);\n try {\n return merge(Array.isArray(value) ? [] : Object.create(null), value);\n } finally {\n ancestors.delete(value);\n }\n }\n\n function merge(target: any, source: any): any {\n if (Array.isArray(target) !== Array.isArray(source)) {\n return clone(source);\n }\n if (Array.isArray(source)) {\n return arrayMerge ? arrayMerge(target, source) : target.concat(source).map(clone);\n }\n\n const result: Record<PropertyKey, any> = {};\n if (isMergeable(target)) {\n for (const key of getEnumerableKeys(target)) {\n result[key] = clone(target[key]);\n }\n }\n for (const key of getEnumerableKeys(source)) {\n // NOTE(@kitten): Treat inherited target values as absent so own data keys are not dropped or merged into prototypes.\n const hasOwnValue =\n target != null &&\n Object.hasOwn(target, key) &&\n Object.prototype.propertyIsEnumerable.call(target, key);\n result[key] =\n hasOwnValue && isMergeable(source[key])\n ? merge(target[key], source[key])\n : clone(source[key]);\n }\n return result;\n }\n\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,GAAG,CAAC,CAAC,GACnCa,KAAK,CAACT,MAAM,CAACJ,GAAG,CAAC,EAAEK,MAAM,CAACL,GAAG,CAAC,CAAC,GAC/BS,KAAK,CAACJ,MAAM,CAACL,GAAG,CAAC,CAAC;IAC1B;IACA,OAAOoB,MAAM;EACf;EAEA,OAAOP,KAAK,CAACT,MAAM,EAAEC,MAAM,CAAC;AAC9B","ignoreList":[]}
@@ -2,20 +2,10 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.env = void 0;
5
- function _getenv() {
6
- const data = require("getenv");
7
- _getenv = function () {
8
- return data;
9
- };
10
- return data;
11
- }
12
5
  class Env {
13
6
  /** Disable auto server root detection for Metro. This will not change the server root to the workspace root. */
14
7
  get EXPO_NO_METRO_WORKSPACE_ROOT() {
15
- if ((0, _getenv().string)('EXPO_USE_METRO_WORKSPACE_ROOT', '')) {
16
- console.warn('EXPO_USE_METRO_WORKSPACE_ROOT is enabled by default, use EXPO_NO_METRO_WORKSPACE_ROOT instead to disable.');
17
- }
18
- return (0, _getenv().boolish)('EXPO_NO_METRO_WORKSPACE_ROOT', false);
8
+ return ['true', '1'].includes((process.env.EXPO_NO_METRO_WORKSPACE_ROOT ?? '').toLowerCase());
19
9
  }
20
10
  }
21
11
  const env = exports.env = new Env();
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","names":["_getenv","data","require","Env","EXPO_NO_METRO_WORKSPACE_ROOT","string","console","warn","boolish","env","exports"],"sources":["../../src/paths/env.ts"],"sourcesContent":["import { boolish, string } from 'getenv';\n\nclass Env {\n /** Disable auto server root detection for Metro. This will not change the server root to the workspace root. */\n get EXPO_NO_METRO_WORKSPACE_ROOT(): boolean {\n if (string('EXPO_USE_METRO_WORKSPACE_ROOT', '')) {\n console.warn(\n 'EXPO_USE_METRO_WORKSPACE_ROOT is enabled by default, use EXPO_NO_METRO_WORKSPACE_ROOT instead to disable.'\n );\n }\n\n return boolish('EXPO_NO_METRO_WORKSPACE_ROOT', false);\n }\n}\n\nexport const env = new Env();\n"],"mappings":";;;;AAAA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,MAAME,GAAG,CAAC;EACR;EACA,IAAIC,4BAA4BA,CAAA,EAAY;IAC1C,IAAI,IAAAC,gBAAM,EAAC,+BAA+B,EAAE,EAAE,CAAC,EAAE;MAC/CC,OAAO,CAACC,IAAI,CACV,2GACF,CAAC;IACH;IAEA,OAAO,IAAAC,iBAAO,EAAC,8BAA8B,EAAE,KAAK,CAAC;EACvD;AACF;AAEO,MAAMC,GAAG,GAAAC,OAAA,CAAAD,GAAA,GAAG,IAAIN,GAAG,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"env.js","names":["Env","EXPO_NO_METRO_WORKSPACE_ROOT","includes","process","env","toLowerCase","exports"],"sources":["../../src/paths/env.ts"],"sourcesContent":["class Env {\n /** Disable auto server root detection for Metro. This will not change the server root to the workspace root. */\n get EXPO_NO_METRO_WORKSPACE_ROOT(): boolean {\n return ['true', '1'].includes((process.env.EXPO_NO_METRO_WORKSPACE_ROOT ?? '').toLowerCase());\n }\n}\n\nexport const env = new Env();\n"],"mappings":";;;;AAAA,MAAMA,GAAG,CAAC;EACR;EACA,IAAIC,4BAA4BA,CAAA,EAAY;IAC1C,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAACC,QAAQ,CAAC,CAACC,OAAO,CAACC,GAAG,CAACH,4BAA4B,IAAI,EAAE,EAAEI,WAAW,CAAC,CAAC,CAAC;EAC/F;AACF;AAEO,MAAMD,GAAG,GAAAE,OAAA,CAAAF,GAAA,GAAG,IAAIJ,GAAG,CAAC,CAAC","ignoreList":[]}
@@ -2,14 +2,7 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.withInternal = exports.EXPO_DEBUG = void 0;
5
- function _getenv() {
6
- const data = require("getenv");
7
- _getenv = function () {
8
- return data;
9
- };
10
- return data;
11
- }
12
- const EXPO_DEBUG = exports.EXPO_DEBUG = (0, _getenv().boolish)('EXPO_DEBUG', false);
5
+ const EXPO_DEBUG = exports.EXPO_DEBUG = ['true', '1'].includes((process.env.EXPO_DEBUG ?? '').toLowerCase());
13
6
 
14
7
  /**
15
8
  * Adds the _internal object.
@@ -1 +1 @@
1
- {"version":3,"file":"withInternal.js","names":["_getenv","data","require","EXPO_DEBUG","exports","boolish","withInternal","config","internals","_internal","isDebug"],"sources":["../../src/plugins/withInternal.ts"],"sourcesContent":["import type { ConfigPlugin } from '@expo/config-plugins';\nimport { boolish } from 'getenv';\n\nimport type { ConfigFilePaths } from '../Config.types';\n\nexport const EXPO_DEBUG = boolish('EXPO_DEBUG', false);\n\n/**\n * Adds the _internal object.\n *\n * @param config\n * @param projectRoot\n */\nexport const withInternal: ConfigPlugin<\n { projectRoot: string; packageJsonPath?: string } & Partial<ConfigFilePaths>\n> = (config, internals) => {\n if (!config._internal) {\n config._internal = {};\n }\n\n config._internal = {\n isDebug: EXPO_DEBUG,\n ...config._internal,\n ...internals,\n };\n\n return config;\n};\n"],"mappings":";;;;AACA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAIO,MAAME,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,IAAAE,iBAAO,EAAC,YAAY,EAAE,KAAK,CAAC;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,YAEZ,GAAGA,CAACC,MAAM,EAAEC,SAAS,KAAK;EACzB,IAAI,CAACD,MAAM,CAACE,SAAS,EAAE;IACrBF,MAAM,CAACE,SAAS,GAAG,CAAC,CAAC;EACvB;EAEAF,MAAM,CAACE,SAAS,GAAG;IACjBC,OAAO,EAAEP,UAAU;IACnB,GAAGI,MAAM,CAACE,SAAS;IACnB,GAAGD;EACL,CAAC;EAED,OAAOD,MAAM;AACf,CAAC;AAACH,OAAA,CAAAE,YAAA,GAAAA,YAAA","ignoreList":[]}
1
+ {"version":3,"file":"withInternal.js","names":["EXPO_DEBUG","exports","includes","process","env","toLowerCase","withInternal","config","internals","_internal","isDebug"],"sources":["../../src/plugins/withInternal.ts"],"sourcesContent":["import type { ConfigPlugin } from '@expo/config-plugins';\n\nimport type { ConfigFilePaths } from '../Config.types';\n\nexport const EXPO_DEBUG = ['true', '1'].includes((process.env.EXPO_DEBUG ?? '').toLowerCase());\n\n/**\n * Adds the _internal object.\n *\n * @param config\n * @param projectRoot\n */\nexport const withInternal: ConfigPlugin<\n { projectRoot: string; packageJsonPath?: string } & Partial<ConfigFilePaths>\n> = (config, internals) => {\n if (!config._internal) {\n config._internal = {};\n }\n\n config._internal = {\n isDebug: EXPO_DEBUG,\n ...config._internal,\n ...internals,\n };\n\n return config;\n};\n"],"mappings":";;;;AAIO,MAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAACE,QAAQ,CAAC,CAACC,OAAO,CAACC,GAAG,CAACJ,UAAU,IAAI,EAAE,EAAEK,WAAW,CAAC,CAAC,CAAC;;AAE9F;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,YAEZ,GAAGA,CAACC,MAAM,EAAEC,SAAS,KAAK;EACzB,IAAI,CAACD,MAAM,CAACE,SAAS,EAAE;IACrBF,MAAM,CAACE,SAAS,GAAG,CAAC,CAAC;EACvB;EAEAF,MAAM,CAACE,SAAS,GAAG;IACjBC,OAAO,EAAEV,UAAU;IACnB,GAAGO,MAAM,CAACE,SAAS;IACnB,GAAGD;EACL,CAAC;EAED,OAAOD,MAAM;AACf,CAAC;AAACN,OAAA,CAAAK,YAAA,GAAAA,YAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/config",
3
- "version": "57.0.10",
3
+ "version": "57.0.12",
4
4
  "description": "A library for interacting with the app.json",
5
5
  "main": "build/index.js",
6
6
  "repository": {
@@ -24,13 +24,11 @@
24
24
  "paths"
25
25
  ],
26
26
  "dependencies": {
27
- "@expo/config-plugins": "~57.0.10",
27
+ "@expo/config-plugins": "~57.0.13",
28
28
  "@expo/config-types": "^57.0.2",
29
29
  "@expo/json-file": "^11.0.1",
30
- "@expo/require-utils": "^57.0.6",
31
- "deepmerge": "^4.3.1",
32
- "getenv": "^2.0.0",
33
- "glob": "^13.0.0",
30
+ "@expo/require-utils": "^57.0.7",
31
+ "glob": "^14.0.3",
34
32
  "resolve-workspace-root": "^2.0.0",
35
33
  "semver": "^7.6.0",
36
34
  "slugify": "^1.3.4"
@@ -38,14 +36,14 @@
38
36
  "devDependencies": {
39
37
  "@babel/cli": "^7.23.4",
40
38
  "@types/babel__code-frame": "^7.27.0",
41
- "@types/getenv": "^1.0.0",
39
+ "@types/node": "^22.14.0",
42
40
  "@types/semver": "^7.5.8",
43
41
  "expo-module-scripts": "56.0.3"
44
42
  },
45
43
  "publishConfig": {
46
44
  "access": "public"
47
45
  },
48
- "gitHead": "50ac74f1ab5682c8e32b24da6e5e97dd4dbbb80f",
46
+ "gitHead": "14616b4ffe6167019952be745310f563d15bf68a",
49
47
  "scripts": {
50
48
  "build": "tsc --emitDeclarationOnly && babel src --out-dir build --extensions \".ts\" --source-maps --ignore \"src/**/__mocks__/*\",\"src/**/__tests__/*\"",
51
49
  "clean": "expo-module clean",