Skip to content

Commit

Permalink
include dotfiles when creating new project - fixes #1036 (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Harris authored Apr 18, 2021
1 parent e8fe413 commit bbeb58f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/poor-goats-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Include dotfiles when creating new project
2 changes: 1 addition & 1 deletion packages/create-svelte/scripts/build-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function generate_templates(shared) {
/** @type {import('../types/internal.js').File[]} */
const ts = [];

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

Expand Down

0 comments on commit bbeb58f

Please sign in to comment.