Skip to content

Commit

Permalink
fix: cpy parents true
Browse files Browse the repository at this point in the history
  • Loading branch information
LasaleFamine committed Mar 26, 2022
1 parent af2c6b4 commit 19dec10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/helpers/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,12 @@ type Props = {

export const copyAll = async ({ appRoot, baseTemplate }: Props) => {
const templatesPath = path.join(__dirname, '..', '..', 'templates');
await cpy('**/*', appRoot, {
await cpy('.', appRoot, {
cwd: path.join(templatesPath, 'default'),
rename: filesWithDots,

});

await cpy('**/*', appRoot, {
await cpy('.', appRoot, {
cwd: path.join(templatesPath, baseTemplate),
rename: filesWithDots,
});
Expand Down

0 comments on commit 19dec10

Please # to comment.