Skip to content

Commit

Permalink
Remove .npmrc for React
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Nov 21, 2021
1 parent 2bb656d commit 9ff17dc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions generators/cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ function cleanupOldFiles(generator) {
generator.removeFile('.npmrc');
}
}
if (generator.isJhipsterVersionLessThan('7.4.0') && generator.jhipsterConfig) {
if (generator.jhipsterConfig.clientFramework === REACT) {
generator.removeFile('.npmrc');
}
}
}

/**
Expand Down
1 change: 0 additions & 1 deletion generators/client/files-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const files = {
common: [
{
templates: [
'.npmrc',
'package.json',
'.eslintrc.json',
'tsconfig.json',
Expand Down
1 change: 0 additions & 1 deletion generators/client/templates/react/.npmrc.ejs

This file was deleted.

3 changes: 0 additions & 3 deletions test/__snapshots__/app.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9875,9 +9875,6 @@ Object {
".mvn/wrapper/maven-wrapper.properties": Object {
"stateCleared": "modified",
},
".npmrc": Object {
"stateCleared": "modified",
},
".prettierignore": Object {
"stateCleared": "modified",
},
Expand Down

0 comments on commit 9ff17dc

Please sign in to comment.