@modernpoacher/deps 2.1.2 → 2.1.4

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.
@@ -82,10 +82,11 @@ ${getExportPath(getNvm(getRegistryParameter(registry, getForceParameter(force, '
82
82
 
83
83
  export function getArgs () {
84
84
  return (
85
- ARGV
86
- .join(
87
- String.fromCodePoint(32)
88
- )
85
+ PLATFORM === 'win32'
86
+ ? ARGV.map((v) => v.startsWith('-') ? v : `"${v}"`)
87
+ : ARGV.map((v) => v.startsWith('-') ? v : `'${v}'`)
88
+ ).join(
89
+ String.fromCodePoint(32)
89
90
  )
90
91
  }
91
92
 
package/bin/deps/deps.mjs CHANGED
@@ -6,6 +6,10 @@ import {
6
6
  exec
7
7
  } from 'node:child_process'
8
8
 
9
+ import {
10
+ resolve
11
+ } from 'node:path'
12
+
9
13
  import {
10
14
  getArgs,
11
15
  use
@@ -19,6 +23,8 @@ import {
19
23
  PLATFORM
20
24
  } from '#deps/src/common/env'
21
25
 
26
+ import PATH from '#where-am-i'
27
+
22
28
  const {
23
29
  env: {
24
30
  DEBUG = '@modernpoacher/deps*'
@@ -32,8 +38,8 @@ const error = debug('@modernpoacher/deps:error')
32
38
 
33
39
  const command = (
34
40
  PLATFORM === 'win32'
35
- ? 'bash .\\bin\\bash\\deps.sh'
36
- : 'bash ./bin/bash/deps.sh'
41
+ ? `bash "${resolve(PATH, '.\\bin\\bash\\deps.sh')}"`
42
+ : `bash '${resolve(PATH, './bin/bash/deps.sh')}'`
37
43
  )
38
44
 
39
45
  const args = getArgs()
package/bin/deps/head.mjs CHANGED
@@ -6,6 +6,10 @@ import {
6
6
  exec
7
7
  } from 'node:child_process'
8
8
 
9
+ import {
10
+ resolve
11
+ } from 'node:path'
12
+
9
13
  import {
10
14
  getArgs,
11
15
  use
@@ -19,6 +23,8 @@ import {
19
23
  PLATFORM
20
24
  } from '#deps/src/common/env'
21
25
 
26
+ import PATH from '#where-am-i'
27
+
22
28
  const {
23
29
  env: {
24
30
  DEBUG = '@modernpoacher/deps*'
@@ -32,8 +38,8 @@ const error = debug('@modernpoacher/deps:error')
32
38
 
33
39
  const command = (
34
40
  PLATFORM === 'win32'
35
- ? 'bash .\\bin\\bash\\head.sh'
36
- : 'bash ./bin/bash/head.sh'
41
+ ? `bash "${resolve(PATH, '.\\bin\\bash\\head.sh')}"`
42
+ : `bash '${resolve(PATH, './bin/bash/head.sh')}'`
37
43
  )
38
44
 
39
45
  const args = getArgs()
package/bin/deps/push.mjs CHANGED
@@ -6,6 +6,10 @@ import {
6
6
  exec
7
7
  } from 'node:child_process'
8
8
 
9
+ import {
10
+ resolve
11
+ } from 'node:path'
12
+
9
13
  import {
10
14
  getArgs,
11
15
  use
@@ -19,6 +23,8 @@ import {
19
23
  PLATFORM
20
24
  } from '#deps/src/common/env'
21
25
 
26
+ import PATH from '#where-am-i'
27
+
22
28
  const {
23
29
  env: {
24
30
  DEBUG = '@modernpoacher/deps*'
@@ -32,8 +38,8 @@ const error = debug('@modernpoacher/deps:error')
32
38
 
33
39
  const command = (
34
40
  PLATFORM === 'win32'
35
- ? 'bash .\\bin\\bash\\push.sh'
36
- : 'bash ./bin/bash/push.sh'
41
+ ? `bash "${resolve(PATH, '.\\bin\\bash\\push.sh')}"`
42
+ : `bash '${resolve(PATH, './bin/bash/push.sh')}'`
37
43
  )
38
44
 
39
45
  const args = getArgs()
package/bin/deps/wipe.mjs CHANGED
@@ -6,6 +6,10 @@ import {
6
6
  exec
7
7
  } from 'node:child_process'
8
8
 
9
+ import {
10
+ resolve
11
+ } from 'node:path'
12
+
9
13
  import {
10
14
  getArgs,
11
15
  use
@@ -19,6 +23,8 @@ import {
19
23
  PLATFORM
20
24
  } from '#deps/src/common/env'
21
25
 
26
+ import PATH from '#where-am-i'
27
+
22
28
  const {
23
29
  env: {
24
30
  DEBUG = '@modernpoacher/deps*'
@@ -32,8 +38,8 @@ const error = debug('@modernpoacher/deps:error')
32
38
 
33
39
  const command = (
34
40
  PLATFORM === 'win32'
35
- ? 'bash .\\bin\\bash\\wipe.sh'
36
- : 'bash ./bin/bash/wipe.sh'
41
+ ? `bash "${resolve(PATH, '.\\bin\\bash\\wipe.sh')}"`
42
+ : `bash '${resolve(PATH, './bin/bash/wipe.sh')}'`
37
43
  )
38
44
 
39
45
  const args = getArgs()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",