react-native-rename
Advanced tools
Comparing version
@@ -44,2 +44,5 @@ #!/usr/bin/env node | ||
// nS - No Space | ||
// lC - Lowercase | ||
var projectName = (0, _projectName2.default)(); | ||
@@ -61,3 +64,3 @@ | ||
_commander2.default.version('1.0.9').arguments('<newName>').action(function (newName) { | ||
_commander2.default.version('1.0.10').arguments('<newName>').action(function (newName) { | ||
@@ -130,2 +133,11 @@ var nS_NewName = newName.replace(/\s/g, ''); | ||
// Check if Podfile exists, because some project don't have this file | ||
if ((0, _fileExists2.default)('./ios/Podfile')) { | ||
(0, _replace2.default)(_extends({ | ||
regex: lC_Ns_CurrentAppName, | ||
replacement: lC_Ns_NewName, | ||
paths: ['./ios/Podfile'] | ||
}, replaceOptions)); | ||
} | ||
// Check if MainApplication.java exists, because some project don't have this file | ||
@@ -132,0 +144,0 @@ if ((0, _fileExists2.default)('./android/app/src/main/java/com/' + lC_Ns_NewName + '/MainApplication.java')) { |
{ | ||
"name": "react-native-rename", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Rename react-native app with just one command", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
12473
2.85%175
6.06%