[Pkg-javascript-commits] [node-tap] 135/186: Do not use osHomedir
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 1 16:40:53 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 4a8785054284387fac3d516a35d7752446c801ce
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 | 3 +--
package.json | 1 -
test-legacy/rcfiles.js | 4 ++--
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/bin/run.js b/bin/run.js
index 9d950e5..862fdc8 100755
--- a/bin/run.js
+++ b/bin/run.js
@@ -15,7 +15,6 @@ return nycBin;
}
const glob = require('glob')
const isexe = require('isexe')
-const osHomedir = require('os-homedir')
const yaml = require('js-yaml')
const path = require('path')
const exists = require('fs-exists-cached').sync
@@ -66,7 +65,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