@react-native-community/cli-doctor
Advanced tools
Comparing version 9.0.0-alpha.12 to 9.0.0
@@ -18,12 +18,2 @@ "use strict"; | ||
function _path() { | ||
const data = _interopRequireDefault(require("path")); | ||
_path = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _util() { | ||
@@ -92,15 +82,21 @@ const data = require("util"); | ||
}, | ||
runAutomaticFix: async () => { | ||
const templateXcodeEnv = '_xcode.env'; | ||
const projectRoot = (0, _cliTools().findProjectRoot)(); | ||
const templateIosPath = _path().default.dirname(require.resolve('react-native/template/ios')); | ||
const src = templateIosPath + templateXcodeEnv; | ||
const copyFileAsync = (0, _util().promisify)(_fs().default.copyFile); | ||
(0, _cliPlatformIos().findPodfilePaths)(projectRoot).map(removeLastPathComponent) // avoid overriding existing .xcode.env | ||
.filter(pathDoesNotHaveXcodeEnvFile).forEach(async pathString => { | ||
const destFilePath = pathString + pathSeparator + xcodeEnvFile; | ||
await copyFileAsync(src, destFilePath); | ||
}); | ||
runAutomaticFix: async ({ | ||
loader | ||
}) => { | ||
try { | ||
loader.stop(); | ||
const templateXcodeEnv = '_xcode.env'; | ||
const projectRoot = (0, _cliTools().findProjectRoot)(); | ||
const templateIosPath = (0, _cliTools().resolveNodeModuleDir)(projectRoot, 'react-native/template/ios'); | ||
const src = templateIosPath + pathSeparator + templateXcodeEnv; | ||
const copyFileAsync = (0, _util().promisify)(_fs().default.copyFile); | ||
(0, _cliPlatformIos().findPodfilePaths)(projectRoot).map(removeLastPathComponent) // avoid overriding existing .xcode.env | ||
.filter(pathDoesNotHaveXcodeEnvFile).forEach(async pathString => { | ||
const destFilePath = pathString + pathSeparator + xcodeEnvFile; | ||
await copyFileAsync(src, destFilePath); | ||
}); | ||
loader.succeed('.xcode.env file have been created!'); | ||
} catch (e) { | ||
loader.fail(e); | ||
} | ||
} | ||
@@ -107,0 +103,0 @@ }; |
{ | ||
"name": "@react-native-community/cli-doctor", | ||
"version": "9.0.0-alpha.12", | ||
"version": "9.0.0", | ||
"license": "MIT", | ||
@@ -11,5 +11,5 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@react-native-community/cli-config": "^9.0.0-alpha.12", | ||
"@react-native-community/cli-platform-ios": "^9.0.0-alpha.12", | ||
"@react-native-community/cli-tools": "^9.0.0-alpha.10", | ||
"@react-native-community/cli-config": "^9.0.0", | ||
"@react-native-community/cli-platform-ios": "^9.0.0", | ||
"@react-native-community/cli-tools": "^9.0.0", | ||
"chalk": "^4.1.2", | ||
@@ -35,3 +35,3 @@ "command-exists": "^1.2.8", | ||
"devDependencies": { | ||
"@react-native-community/cli-types": "^9.0.0-alpha.0", | ||
"@react-native-community/cli-types": "^9.0.0", | ||
"@types/command-exists": "^1.2.0", | ||
@@ -49,3 +49,3 @@ "@types/ip": "^1.1.0", | ||
}, | ||
"gitHead": "a3d63ffb538df0de2f1ff112837ae6674c11433c" | ||
"gitHead": "d61d255cfc4233b90684f4892b2cc6488943a9a6" | ||
} |
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 v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
234866
2744
0