use os.homedir, os.tmpdir

parent bf0d4c68
use-require-os.patch
--- a/osenv.js
+++ b/osenv.js
@@ -1,8 +1,9 @@
var isWindows = process.platform === 'win32'
var path = require('path')
+var os = require('os')
var exec = require('child_process').exec
-var osTmpdir = require('os-tmpdir')
-var osHomedir = require('os-homedir')
+var osTmpdir = os.tmpdir()
+var osHomedir = os.homedir()
// looking up envs is a bit costly.
// Also, sometimes we want to have a fallback
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment