Skip to content

Commit

Permalink
feat(config): add more npm/node information to config ls
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys authored and fritzy committed Apr 13, 2022
1 parent a4ee396 commit 6611e91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/commands/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ ${defData}
if (!long) {
msg.push(
`; node bin location = ${process.execPath}`,
`; node version = ${process.version}`,
`; npm bin location = ${dirname(dirname(__dirname))}`,
`; npm version = ${this.npm.version}`,
`; cwd = ${process.cwd()}`,
`; HOME = ${process.env.HOME}`,
'; Run `npm config ls -l` to show all defaults.'
Expand Down
9 changes: 9 additions & 0 deletions tap-snapshots/test/lib/commands/config.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ prefix = "{LOCALPREFIX}"
userconfig = "{HOME}/.npmrc"
; node bin location = {EXECPATH}
; node version = {NODE-VERSION}
; npm bin location = {NPMDIR}
; npm version = {NPM-VERSION}
; cwd = {NPMDIR}
; HOME = {HOME}
; Run \`npm config ls -l\` to show all defaults.
Expand All @@ -355,6 +358,9 @@ prefix = "{LOCALPREFIX}"
userconfig = "{HOME}/.npmrc"
; node bin location = {EXECPATH}
; node version = {NODE-VERSION}
; npm bin location = {NPMDIR}
; npm version = {NPM-VERSION}
; cwd = {NPMDIR}
; HOME = {HOME}
; Run \`npm config ls -l\` to show all defaults.
Expand Down Expand Up @@ -383,6 +389,9 @@ prefix = "{LOCALPREFIX}"
userconfig = "{HOME}/.npmrc"
; node bin location = {EXECPATH}
; node version = {NODE-VERSION}
; npm bin location = {NPMDIR}
; npm version = {NPM-VERSION}
; cwd = {NPMDIR}
; HOME = {HOME}
; Run \`npm config ls -l\` to show all defaults.
Expand Down

0 comments on commit 6611e91

Please sign in to comment.