From e7f74fdb6dbc16e81faaee2e792fabe0395d11bd Mon Sep 17 00:00:00 2001 From: Maxime Thirouin Date: Sun, 13 Nov 2016 13:08:23 +0100 Subject: [PATCH] Do not copy yarn.lock during setup --- src/bin/commands/setup/index.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/bin/commands/setup/index.js b/src/bin/commands/setup/index.js index 7914a658c..393b5a96b 100644 --- a/src/bin/commands/setup/index.js +++ b/src/bin/commands/setup/index.js @@ -43,10 +43,17 @@ export default async function setup(argv) { await fs.writeJson(join(cwd, "package.json"), pkg) log("`package.json` generated") - // node_modules is excluded because can be present during tests - // (but will never be in public package) const files = globby.sync( - [ "*", "!node_modules", "!package.json" ], + [ + "*", + // node_modules is excluded because can be present during tests + // (but will never be in public package) + "!node_modules", + // already generated + "!package.json", + // we assume it's up to the user + "!yarn.lock", + ], { dot: true, cwd: themePath } ) await Promise.all(files.map((file) => fs.copy(