Skip to content

Commit

Permalink
Merge pull request #1384 from dsibiski/cli-package-name-validation
Browse files Browse the repository at this point in the history
[CLI] Validation check for "React" package name
  • Loading branch information
vjeux committed May 25, 2015
2 parents ffcdf21 + eb3bdd9 commit 68718fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions react-native-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ function validatePackageName(name) {
);
process.exit(1);
}

if (name === 'React') {
console.error(
'"%s" is not a valid name for a project. Please do not use the ' +
'reserved word "React".',
name
);
process.exit(1);
}
}

function init(name) {
Expand Down

0 comments on commit 68718fd

Please sign in to comment.