Skip to content

Commit

Permalink
Increment the name if it already exists instead of overwriting
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 7, 2017
1 parent 54fccfc commit 14e5120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const cli = meow(`
`, options);

function generate(args, options) {
const pageres = new Pageres()
const pageres = new Pageres({incrementalName: true})
.dest(process.cwd());

args.forEach(arg => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"arrify": "^1.0.0",
"log-symbols": "^1.0.0",
"meow": "^3.5.0",
"pageres": "^4.1.0",
"pageres": "^4.3.0",
"parse-headers": "^2.0.0",
"subarg": "^1.0.0",
"sudo-block": "^1.0.0",
Expand Down

0 comments on commit 14e5120

Please sign in to comment.