Skip to content

Commit

Permalink
Merge branch 'release/3.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
junedomingo committed Dec 28, 2022
2 parents 27a37ce + 3dd6bdd commit 7553d31
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-rename",
"version": "3.1.1",
"version": "3.1.2",
"description": "Rename react-native app with just one command",
"main": "lib/index.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ program
)
.option('--skipGitStatusCheck', 'Skip git repo status check')
.action(async newName => {
validateCreation();
validateGitRepo();

const options = program.opts();

if (!options.skipGitStatusCheck) {
Expand Down Expand Up @@ -135,6 +138,4 @@ if (!process.argv.slice(2).length) {
process.exit();
}

validateCreation();
validateGitRepo();
program.parseAsync(process.argv);

0 comments on commit 7553d31

Please sign in to comment.