Skip to content

Commit

Permalink
auto-publish scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 16, 2018
1 parent b196e0e commit e8f0dc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions chownr.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ const nodeVersion = process.version
let readdir = (path, options, cb) => fs.readdir(path, options, cb)
let readdirSync = (path, options) => fs.readdirSync(path, options)
/* istanbul ignore next */
if (/^v4\./.test(nodeVersion)) {
if (/^v4\./.test(nodeVersion))
readdir = (path, options, cb) => fs.readdir(path, cb)
readdirSync = (path, options) => fs.readdirSync(path)
}

const chownrKid = (p, child, uid, gid, cb) => {
if (typeof child === 'string')
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"tap": "^12.0.1"
},
"scripts": {
"test": "tap test/*.js"
"test": "tap test/*.js --cov",
"preversion": "npm test",
"postversion": "npm publish",
"postpublish": "git push origin --all; git push origin --tags"
},
"license": "ISC"
}

0 comments on commit e8f0dc7

Please sign in to comment.