Skip to content

Commit

Permalink
fix async warnings, clean up npm pack
Browse files Browse the repository at this point in the history
  • Loading branch information
jescalan committed Feb 10, 2017
1 parent 5f9d59d commit 0e79bd4
Show file tree
Hide file tree
Showing 3 changed files with 2,330 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test/
src/
Makefile
.travis.yml
.babelrc
.editorconfig
contributing.md
yarn.lock
4 changes: 2 additions & 2 deletions lib/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class Template {
this.sprout.emit('msg', 'removing template')

return fs.lstatAsync(this.path).then((stat) => {
if (stat.isSymbolicLink()) { return fs.unlink(this.path) }
if (stat.isSymbolicLink()) { return fs.unlinkAsync(this.path) }
return rimraf(this.path)
}).yield(this)
}
Expand Down Expand Up @@ -279,7 +279,7 @@ function checkoutTagIfPresent (tag) {

function createTargetDirectory (target) {
this.sprout.emit('msg', `creating target directory: ${target}`)
return fs.mkdir(target)
return fs.mkdirAsync(target)
}

function installDependenciesIfPresent () {
Expand Down
Loading

0 comments on commit 0e79bd4

Please sign in to comment.