From 19dec105ab04f2b2710ee7df6d6f443694304851 Mon Sep 17 00:00:00 2001 From: Alessio Occhipinti Date: Sat, 26 Mar 2022 09:27:36 +0100 Subject: [PATCH] fix: cpy parents true --- src/helpers/copy.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/helpers/copy.ts b/src/helpers/copy.ts index cde3996..78d76e8 100644 --- a/src/helpers/copy.ts +++ b/src/helpers/copy.ts @@ -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, });