Skip to content

Commit bbeb58f

Browse files
author
Rich Harris
authored
include dotfiles when creating new project - fixes #1036 (#1084)
1 parent e8fe413 commit bbeb58f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/poor-goats-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-svelte': patch
3+
---
4+
5+
Include dotfiles when creating new project

packages/create-svelte/scripts/build-templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function generate_templates(shared) {
2727
/** @type {import('../types/internal.js').File[]} */
2828
const ts = [];
2929

30-
glob('**/*', { cwd, filesOnly: true }).forEach((name) => {
30+
glob('**/*', { cwd, filesOnly: true, dot: true }).forEach((name) => {
3131
if (name === '.meta.json' || shared.has(name)) return;
3232
if (!gitignore.accepts(name)) return;
3333

0 commit comments

Comments
 (0)