Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Do not copy yarn.lock during setup
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Nov 13, 2016
1 parent 4b805aa commit e7f74fd
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/bin/commands/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e7f74fd

Please sign in to comment.