Skip to content

Commit

Permalink
Merge pull request #8935 from marmelab/fix-create-react-admin-add-unn…
Browse files Browse the repository at this point in the history
…ecessary-files

Fix create-react-admin adds unnecessary files
  • Loading branch information
fzaninotto committed May 22, 2023
2 parents 38a1ccd + 510b72c commit bd63fa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create-react-admin/src/generateProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ export const generateProject = async (state: ProjectConfiguration) => {
copyDirectoryFiles(
path.join(__dirname, '../templates', state.dataProvider),
path.join(path.join(projectDirectory, 'src')),
['package.json']
['package.json', '.env', 'README.md', 'help.txt']
);
}

if (state.authProvider !== 'none') {
copyDirectoryFiles(
path.join(__dirname, '../templates', state.authProvider),
path.join(path.join(projectDirectory, 'src')),
['package.json']
['package.json', '.env', 'README.md', 'help.txt']
);
}

Expand Down

0 comments on commit bd63fa4

Please sign in to comment.