diff --git a/.changeset/slow-ladybugs-shop.md b/.changeset/slow-ladybugs-shop.md new file mode 100644 index 00000000..163a0708 --- /dev/null +++ b/.changeset/slow-ladybugs-shop.md @@ -0,0 +1,5 @@ +--- +"create-webstone-app": patch +--- + +Ignore node_modules when copying the template. diff --git a/packages/create-webstone-app/src/index.js b/packages/create-webstone-app/src/index.js index 1b13d3d5..d6871220 100644 --- a/packages/create-webstone-app/src/index.js +++ b/packages/create-webstone-app/src/index.js @@ -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; };