@expo/config
Advanced tools
Comparing version 9.0.3-canary-20240627-1402f4b to 9.1.0-canary-20240628-1ba8152
@@ -358,35 +358,33 @@ "use strict"; | ||
}; | ||
} else if (config.staticConfigPath) { | ||
// Static with no dynamic config, this means we can append to the config automatically. | ||
let outputConfig; | ||
// If the config has an expo object (app.json) then append the options to that object. | ||
if (config.rootConfig.expo) { | ||
outputConfig = { | ||
...config.rootConfig, | ||
expo: { | ||
...config.rootConfig.expo, | ||
...modifications | ||
} | ||
}; | ||
} else { | ||
// Otherwise (app.config.json) just add the config modification to the top most level. | ||
outputConfig = { | ||
...config.rootConfig, | ||
} else if (config.staticConfigPath == null) { | ||
// No config in the project, use a default location. | ||
config.staticConfigPath = _path().default.join(projectRoot, 'app.json'); | ||
} | ||
// Static with no dynamic config, this means we can append to the config automatically. | ||
let outputConfig; | ||
// If the config has an expo object (app.json) then append the options to that object. | ||
if (config.rootConfig.expo) { | ||
outputConfig = { | ||
...config.rootConfig, | ||
expo: { | ||
...config.rootConfig.expo, | ||
...modifications | ||
}; | ||
} | ||
if (!writeOptions.dryRun) { | ||
await _jsonFile().default.writeAsync(config.staticConfigPath, outputConfig, { | ||
json5: false | ||
}); | ||
} | ||
return { | ||
type: 'success', | ||
config: outputConfig | ||
} | ||
}; | ||
} else { | ||
// Otherwise (app.config.json) just add the config modification to the top most level. | ||
outputConfig = { | ||
...config.rootConfig, | ||
...modifications | ||
}; | ||
} | ||
if (!writeOptions.dryRun) { | ||
await _jsonFile().default.writeAsync(config.staticConfigPath, outputConfig, { | ||
json5: false | ||
}); | ||
} | ||
return { | ||
type: 'fail', | ||
message: 'No config exists', | ||
config: null | ||
type: 'success', | ||
config: outputConfig | ||
}; | ||
@@ -393,0 +391,0 @@ } |
{ | ||
"name": "@expo/config", | ||
"version": "9.0.3-canary-20240627-1402f4b", | ||
"version": "9.1.0-canary-20240628-1ba8152", | ||
"description": "A library for interacting with the app.json", | ||
@@ -37,5 +37,5 @@ "main": "build/index.js", | ||
"@babel/code-frame": "~7.10.4", | ||
"@expo/config-plugins": "8.0.6-canary-20240627-1402f4b", | ||
"@expo/config-types": "52.0.0-canary-20240627-1402f4b", | ||
"@expo/json-file": "8.3.4-canary-20240627-1402f4b", | ||
"@expo/config-plugins": "8.0.7-canary-20240628-1ba8152", | ||
"@expo/config-types": "52.0.0-canary-20240628-1ba8152", | ||
"@expo/json-file": "8.3.4-canary-20240628-1ba8152", | ||
"getenv": "^1.0.0", | ||
@@ -51,3 +51,3 @@ "glob": "7.1.6", | ||
"@types/require-from-string": "^1.2.1", | ||
"expo-module-scripts": "3.6.0-canary-20240627-1402f4b" | ||
"expo-module-scripts": "3.6.0-canary-20240628-1ba8152" | ||
}, | ||
@@ -57,3 +57,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "1402f4bcfdfcec328fc1e20cf1656bbefe7c3b7b" | ||
"gitHead": "1ba815237ed606c5ee8488f68e49773fc9735cc3" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
151633
0
1821
+ Added@expo/config-plugins@8.0.7-canary-20240628-1ba8152(transitive)
+ Added@expo/config-types@52.0.0-canary-20240628-1ba8152(transitive)
+ Added@expo/json-file@8.3.4-canary-20240628-1ba8152(transitive)
+ Added@expo/plist@0.1.4-canary-20240628-1ba8152(transitive)
- Removed@expo/config-plugins@8.0.6-canary-20240627-1402f4b(transitive)
- Removed@expo/config-types@52.0.0-canary-20240627-1402f4b(transitive)
- Removed@expo/json-file@8.3.4-canary-20240627-1402f4b(transitive)
- Removed@expo/plist@0.1.4-canary-20240627-1402f4b(transitive)