react-native-rename
Advanced tools
Comparing version
@@ -126,3 +126,3 @@ #!/usr/bin/env node | ||
var validatePaths = function validatePaths() { | ||
return new Promise(function (resolve, reject) { | ||
return new Promise(function (resolve) { | ||
var paths = (0, _utils.iosRequiredPaths)(currentAppName); | ||
@@ -132,3 +132,5 @@ | ||
if (!_fs2.default.existsSync(_path2.default.join(_utils.__dirname, item))) { | ||
reject(new Error('Can\'t find an ios path or project. Make sure that the ios project path and property \'name\' in app.json the same.')); | ||
var warning = 'Can\'t find an ios path or project. Make sure that the ios project path and property \'name\' in app.json the same.'; | ||
console.log(_colors2.default.red(warning)); | ||
} | ||
@@ -135,0 +137,0 @@ }); |
@@ -50,3 +50,3 @@ 'use strict'; | ||
return ['ios/' + nS_CurrentAppName, 'ios/' + nS_CurrentAppName + '.xcodeproj']; | ||
return ['ios/' + nS_CurrentAppName]; | ||
} |
{ | ||
"name": "react-native-rename", | ||
"version": "2.8.1", | ||
"version": "2.8.2", | ||
"description": "Rename react-native app with just one command", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
253124
06078
0.02%