@react-native-community/cli-config
Advanced tools
Comparing version 11.0.0-alpha.2 to 11.0.0
@@ -52,2 +52,3 @@ "use strict"; | ||
}, | ||
reactNativeVersion: 'unknown', | ||
dependencies: userConfig.dependencies, | ||
@@ -71,2 +72,18 @@ commands: userConfig.commands, | ||
}; | ||
// Try our best to figure out what version of React Native we're running. This is | ||
// currently being used to get our deeplinks working, so it's only worried with | ||
// the major and minor version. | ||
try { | ||
let semver = _cliTools().version.current(initialConfig.reactNativePath); | ||
if (semver) { | ||
// Retain only these version, since they correspond with our documentation. | ||
initialConfig.reactNativeVersion = `${semver.major}.${semver.minor}`; | ||
} | ||
} catch (e) { | ||
// If we don't seem to be in a well formed project, give up quietly. | ||
if (!(e instanceof _cliTools().UnknownProjectError)) { | ||
throw e; | ||
} | ||
} | ||
const finalConfig = Array.from(new Set([...Object.keys(userConfig.dependencies), ...(0, _findDependencies.default)(projectRoot)])).reduce((acc, dependencyName) => { | ||
@@ -73,0 +90,0 @@ const localDependencyRoot = userConfig.dependencies[dependencyName] && userConfig.dependencies[dependencyName].root; |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
export default function merge<X, Y>(x: X, y: Y): unknown; | ||
export default function merge<X, Y>(x: Partial<X>, y: Partial<Y>): X & Y; | ||
//# sourceMappingURL=merge.d.ts.map |
@@ -136,3 +136,4 @@ "use strict"; | ||
.object({ | ||
sourceDir: _joi().default.string() | ||
sourceDir: _joi().default.string(), | ||
unstable_reactLegacyComponentNames: _joi().default.array().items(_joi().default.string()).default([]) | ||
}).default({}), | ||
@@ -146,3 +147,4 @@ android: _joi().default | ||
packageName: _joi().default.string(), | ||
dependencyConfiguration: _joi().default.string() | ||
dependencyConfiguration: _joi().default.string(), | ||
unstable_reactLegacyComponentNames: _joi().default.array().items(_joi().default.string()).default([]) | ||
}).default({}) | ||
@@ -149,0 +151,0 @@ }).default(), |
{ | ||
"name": "@react-native-community/cli-config", | ||
"version": "11.0.0-alpha.2", | ||
"version": "11.0.0", | ||
"license": "MIT", | ||
@@ -11,6 +11,6 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@react-native-community/cli-tools": "^11.0.0-alpha.2", | ||
"@react-native-community/cli-tools": "^11.0.0", | ||
"chalk": "^4.1.2", | ||
"cosmiconfig": "^5.1.0", | ||
"deepmerge": "^3.2.0", | ||
"deepmerge": "^4.3.0", | ||
"glob": "^7.1.3", | ||
@@ -25,3 +25,3 @@ "joi": "^17.2.1" | ||
"devDependencies": { | ||
"@react-native-community/cli-types": "^11.0.0-alpha.2", | ||
"@react-native-community/cli-types": "^11.0.0", | ||
"@types/cosmiconfig": "^5.0.3", | ||
@@ -36,3 +36,3 @@ "@types/glob": "^7.1.1" | ||
}, | ||
"gitHead": "63022103bebc9202d15255d8d2a6b90ce7401bf0" | ||
"gitHead": "e0c9bcea9cb7af9548052d80846bb45f187a28a3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
63003
43
619
0
0
22
+ Addeddeepmerge@4.3.1(transitive)
- Removeddeepmerge@3.3.0(transitive)
Updateddeepmerge@^4.3.0