Skip to content

Commit

Permalink
chore(create-webstone-app): ignore node_modules when copying the temp…
Browse files Browse the repository at this point in the history
…late
  • Loading branch information
Mike Nikles authored and mikenikles committed Aug 1, 2021
1 parent 6a21152 commit 58cbcba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/slow-ladybugs-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-webstone-app": patch
---

Ignore node_modules when copying the template.
4 changes: 3 additions & 1 deletion packages/create-webstone-app/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ const createAppDir = async (appName = process.argv[2]) => {
const copyTemplate = (appDir) => {
console.log(`Copying template...`);
const templateDir = path.join(__dirname, "..", "template");
fs.copySync(templateDir, appDir);
fs.copySync(templateDir, appDir, {
filter: (src) => src.indexOf("node_modules") === -1,
});
return appDir;
};

Expand Down

0 comments on commit 58cbcba

Please sign in to comment.