Socket
Socket
Sign inDemoInstall

@react-native-community/cli-doctor

Package Overview
Dependencies
Maintainers
30
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-community/cli-doctor - npm Package Compare versions

Comparing version 9.0.0-alpha.12 to 9.0.0

42

build/tools/healthchecks/xcodeEnv.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc