@modernpoacher/deps 2.0.23 → 2.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,13 +43,13 @@ log(`\`common\` (${VERSION} - ${PLATFORM}) is awake`)
43
43
 
44
44
  const OPTIONS = {
45
45
  maxBuffer: 1024 * 2000,
46
- shell: true,
47
46
  stdio: 'inherit',
48
47
  env: {
49
48
  DEBUG_COLORS: 'yes',
50
49
  FORCE_COLOR: PLATFORM === 'win32'
51
50
  ? 3
52
- : 2
51
+ : 2,
52
+ PATH: process.env.PATH
53
53
  }
54
54
  }
55
55
 
package/nvm.sh CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/bin/bash +e
2
2
 
3
3
  NVM=~/.nvm
4
4
 
@@ -30,14 +30,14 @@ then
30
30
  else
31
31
  echo Environment has NVM version $VERSION installed
32
32
 
33
- set -e
33
+ nvm use 2> /dev/null
34
34
 
35
- nvm use
36
-
37
- if [[ $? != 0 ]];
35
+ if [[ $WUT != 0 ]];
38
36
  then
39
37
  echo Environment does not have NVM configured
40
38
  else
41
39
  echo Environment has NVM version $VERSION configured
42
40
  fi
43
41
  fi
42
+
43
+ exit 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.0.23",
3
+ "version": "2.0.25",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
@@ -51,13 +51,13 @@ eval $(ssh-agent -k) 1> /dev/null
51
51
 
52
52
  const OPTIONS = {
53
53
  maxBuffer: 1024 * 2000,
54
- shell: true,
55
54
  stdio: 'inherit',
56
55
  env: {
57
56
  DEBUG_COLORS: 'yes',
58
57
  FORCE_COLOR: PLATFORM === 'win32'
59
58
  ? 3
60
- : 2
59
+ : 2,
60
+ PATH: process.env.PATH
61
61
  }
62
62
  }
63
63
 
@@ -175,7 +175,7 @@ ${commands}
175
175
  * @return {string}
176
176
  */
177
177
  export const getNvm = (commands) => `
178
- . "${NVM}" 2> /dev/null
178
+ bash "${NVM}" 2> /dev/null
179
179
  ${commands}
180
180
  `
181
181
 
package/src/index.mjs CHANGED
@@ -46,13 +46,13 @@ log(`\`deps\` (${VERSION} - ${PLATFORM}) is awake`)
46
46
 
47
47
  const OPTIONS = {
48
48
  maxBuffer: 1024 * 2000,
49
- shell: true,
50
49
  stdio: 'inherit',
51
50
  env: {
52
51
  DEBUG_COLORS: 'yes',
53
52
  FORCE_COLOR: PLATFORM === 'win32'
54
53
  ? 3
55
- : 2
54
+ : 2,
55
+ PATH: process.env.PATH
56
56
  }
57
57
  }
58
58
 
@@ -43,13 +43,13 @@ log(`\`install\` (${VERSION} - ${PLATFORM}) is awake`)
43
43
 
44
44
  const OPTIONS = {
45
45
  maxBuffer: 1024 * 2000,
46
- shell: true,
47
46
  stdio: 'inherit',
48
47
  env: {
49
48
  DEBUG_COLORS: 'yes',
50
49
  FORCE_COLOR: PLATFORM === 'win32'
51
50
  ? 3
52
- : 2
51
+ : 2,
52
+ PATH: process.env.PATH
53
53
  }
54
54
  }
55
55