Skip to content

Commit

Permalink
fix: removed /etc artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Jan 9, 2017
1 parent 2983bf2 commit fe00482
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hooks/lib/npm/nodeDependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
} else {
// only run once
setPackageInstalled()
removeEtcDirectory()
}
deferral.resolve()
})
Expand Down Expand Up @@ -100,4 +101,10 @@
function setPackageInstalled () {
fs.closeSync(fs.openSync(installFlagLocation, 'w'))
}

// artifact caused by 'npm install --prefix'
function removeEtcDirectory () {
var remove = 'rm -r ./plugins/' + SDK + '/etc'
exec(remove)
}
})()

0 comments on commit fe00482

Please sign in to comment.