Skip to content

Commit e8f0dc7

Browse files
committed
auto-publish scripts
1 parent b196e0e commit e8f0dc7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

chownr.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ const nodeVersion = process.version
1212
let readdir = (path, options, cb) => fs.readdir(path, options, cb)
1313
let readdirSync = (path, options) => fs.readdirSync(path, options)
1414
/* istanbul ignore next */
15-
if (/^v4\./.test(nodeVersion)) {
15+
if (/^v4\./.test(nodeVersion))
1616
readdir = (path, options, cb) => fs.readdir(path, cb)
17-
readdirSync = (path, options) => fs.readdirSync(path)
18-
}
1917

2018
const chownrKid = (p, child, uid, gid, cb) => {
2119
if (typeof child === 'string')

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
"tap": "^12.0.1"
1818
},
1919
"scripts": {
20-
"test": "tap test/*.js"
20+
"test": "tap test/*.js --cov",
21+
"preversion": "npm test",
22+
"postversion": "npm publish",
23+
"postpublish": "git push origin --all; git push origin --tags"
2124
},
2225
"license": "ISC"
2326
}

0 commit comments

Comments
 (0)