Skip to content

Commit 9485ba8

Browse files
committed
fix: gitignore not being copied across
1 parent a584d15 commit 9485ba8

File tree

6 files changed

+8
-1
lines changed

6 files changed

+8
-1
lines changed

.changeset/rude-melons-whisper.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-jellycommands': patch
3+
---
4+
5+
fix gitignore not being copied accross

packages/create-jellycommands/src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ export const run = async () => {
6161

6262
const templateGlob = desmJoin(import.meta.url, useTypeScript ? 'ts' : 'js', '/**');
6363

64-
await cpy(templateGlob, target);
64+
await cpy(templateGlob, target, {
65+
rename: (basename) => (basename.startsWith('*') ? `.${basename.slice(1)}` : basename),
66+
});
6567

6668
console.log(`${logSymbols.success} ${kleur.green('Your project has been created!')}`);
6769

0 commit comments

Comments
 (0)