Skip to content

Commit

Permalink
ignore intellij module files when generating an app (#4605)
Browse files Browse the repository at this point in the history
  • Loading branch information
denofevil authored and Timer committed Nov 2, 2018
1 parent 79ad494 commit 20be1b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/create-react-app/createReactApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,6 @@ function isSafeToCreateProjectIn(root, name) {
'.idea',
'README.md',
'LICENSE',
'web.iml',
'.hg',
'.hgignore',
'.hgcheck',
Expand All @@ -764,6 +763,8 @@ function isSafeToCreateProjectIn(root, name) {
const conflicts = fs
.readdirSync(root)
.filter(file => !validFiles.includes(file))
// IntelliJ IDEA creates module files before CRA is launched
.filter(file => !/\.iml$/.test(file))
// Don't treat log files from previous installation as conflicts
.filter(
file => !errorLogFilePatterns.some(pattern => file.indexOf(pattern) === 0)
Expand Down

0 comments on commit 20be1b6

Please sign in to comment.