[Pkg-javascript-commits] [node-tap] 120/186: Do not use osHomedir
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 1 16:40:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-tap.
commit be23089bf840ecd46eb32802f23e5c909507036c
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Sun Sep 10 22:59:23 2017 +0200
Do not use osHomedir
Forwarded: no
---
bin/run.js | 4 ++--
package.json | 1 -
test-legacy/rcfiles.js | 4 ++--
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/bin/run.js b/bin/run.js
index 9d950e5..ed21d01 100755
--- a/bin/run.js
+++ b/bin/run.js
@@ -15,7 +15,7 @@ return nycBin;
}
const glob = require('glob')
const isexe = require('isexe')
-const osHomedir = require('os-homedir')
+const os = require('os')
const yaml = require('js-yaml')
const path = require('path')
const exists = require('fs-exists-cached').sync
@@ -66,7 +66,7 @@ const main = _ => {
const defaults = constructDefaultArgs()
// parse dotfile
- const rcFile = process.env.TAP_RCFILE || (osHomedir() + '/.taprc')
+ const rcFile = process.env.TAP_RCFILE || (os.homedir() + '/.taprc')
const rcOptions = parseRcFile(rcFile)
// supplement defaults with parsed rc options
diff --git a/package.json b/package.json
index e2ec8ff..63e6df2 100644
--- a/package.json
+++ b/package.json
@@ -25,7 +25,6 @@
"js-yaml": "^3.10.0",
"minipass": "^2.2.1",
"mkdirp": "^0.5.1",
- "os-homedir": "^1.0.2",
"own-or": "^1.0.0",
"own-or-env": "^1.0.0",
"rimraf": "^2.6.2",
diff --git a/test-legacy/rcfiles.js b/test-legacy/rcfiles.js
index 5696b23..bf8592e 100644
--- a/test-legacy/rcfiles.js
+++ b/test-legacy/rcfiles.js
@@ -3,11 +3,11 @@ var t = require('../')
var spawn = require('child_process').spawn
var node = process.execPath
var run = require.resolve('../bin/run.js')
+var os = require('os')
// fake this one in case you have some weird stuff in ~/.taprc
var path = require('path')
process.env.HOME = path.resolve(__dirname, 'fixtures')
-var osHomedir = require('os-homedir')
var defaults = {
grep: [],
@@ -31,7 +31,7 @@ var defaults = {
jobs: 1,
lines: 0,
statements: 0,
- rcFile: osHomedir() + '/.taprc',
+ rcFile: os.homedir() + '/.taprc',
outputFile: null
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap.git
More information about the Pkg-javascript-commits
mailing list