Skip to content
Permalink
Browse files

config ordering, and default unsafe-perm when appropriate

  • Loading branch information...
isaacs committed Feb 7, 2011
1 parent fa14821 commit 021750a5bf0c1024916c0a497763cb2d2da78e46
Showing with 14 additions and 4 deletions.
  1. +8 −2 lib/utils/default-config.js
  2. +6 −2 lib/utils/parse-args.js
@@ -22,7 +22,8 @@ if (!process.execPath) {
var stdio = process.binding("stdio")

module.exports =
{ "auto-activate" : "always"
{ argv : []
, "auto-activate" : "always"
, "auto-deactivate" : true
, binroot : path.dirname(process.execPath)
, browser : "open"
@@ -52,8 +53,13 @@ module.exports =
, tag : "latest"
, tar : process.env.TAR || "tar"
, tmproot : (process.env.TMPDIR || "/tmp")
, "unsafe-perm" : process.platform === "win32"
|| !( process.getuid && process.setuid
&& process.getgid && process.setgid )
, "update-dependents" : true
, userconfig : path.join(process.env.HOME, ".npmrc")
, usage : false
, user : "nobody"
, userconfig : path.join(process.env.HOME, ".npmrc")
, version : false
, _exit : true
}
@@ -24,18 +24,20 @@ exports.types =
, color : ["always", Boolean]
, description : Boolean
, dev : Boolean
, dotnpm : String
, editor : path
, force : Boolean
, gzipbin : String
, globalconfig : path
, group : String
, gzipbin : String
, listopts : String
, logfd : [Number, Stream]
, loglevel : ["silent","win","error","warn","info","verbose","silly"]
, manroot : path
, "must-install" : Boolean
, "node-version" : String
, outfd : [Number, Stream]
, "onload-script" : [false, String]
, outfd : [Number, Stream]
, proxy : url
, prune : Boolean
, "rebuild-bundle" : Boolean
@@ -45,8 +47,10 @@ exports.types =
, tag : String
, tar : String
, tmproot : path
, "unsafe-perm" : Boolean
, "update-dependents" : Boolean
, usage : Boolean
, user : String
, userconfig : path
, version : Boolean
, _exit : Boolean

0 comments on commit 021750a

Please sign in to comment.
You can’t perform that action at this time.