@modernpoacher/deps 2.2.4 → 2.2.6

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.
package/bin/bash/deps.sh CHANGED
@@ -3,6 +3,7 @@
3
3
  # https://google.github.io/styleguide/shellguide.html#s7-naming-conventions
4
4
 
5
5
  DIR="$(dirname "$0")"
6
+ BIN="$(realpath "$DIR/..")"
6
7
 
7
8
  NODE_OPTIONS="${NODE_OPTIONS:---disable-warning=ExperimentalWarning}"
8
9
 
@@ -10,11 +11,11 @@ export NODE_OPTIONS=$NODE_OPTIONS # export NODE_OPTIONS='--disable-warning=Exper
10
11
 
11
12
  if [ -f "$HOME/.zshrc" ];
12
13
  then
13
- zsh "$DIR/z.sh"
14
+ zsh "$BIN/z.sh"
14
15
  else
15
16
  if [ -f "$HOME/.bashrc" ];
16
17
  then
17
- bash "$DIR/b.sh"
18
+ bash "$BIN/b.sh"
18
19
  fi
19
20
  fi
20
21
 
@@ -22,6 +23,9 @@ echo SSH auth sock is $SSH_AUTH_SOCK
22
23
  echo Home is $HOME
23
24
  echo Path is $PATH
24
25
 
26
+ echo DIR is $DIR
27
+ echo BIN is $BIN
28
+
25
29
  EXP="[-0-9a-zA-Z]*$"
26
30
 
27
31
  function update {
package/bin/bash/head.sh CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/bin/bash
2
2
 
3
3
  DIR="$(dirname "$0")"
4
+ BIN="$(realpath "$DIR/..")"
4
5
 
5
6
  NODE_OPTIONS="${NODE_OPTIONS:---disable-warning=ExperimentalWarning}"
6
7
 
@@ -8,11 +9,11 @@ export NODE_OPTIONS=$NODE_OPTIONS # export NODE_OPTIONS='--disable-warning=Exper
8
9
 
9
10
  if [ -f "$HOME/.zshrc" ];
10
11
  then
11
- zsh "$DIR/z.sh"
12
+ zsh "$BIN/z.sh"
12
13
  else
13
14
  if [ -f "$HOME/.bashrc" ];
14
15
  then
15
- bash "$DIR/b.sh"
16
+ bash "$BIN/b.sh"
16
17
  fi
17
18
  fi
18
19
 
@@ -20,6 +21,9 @@ echo SSH auth sock is $SSH_AUTH_SOCK
20
21
  echo Home is $HOME
21
22
  echo Path is $PATH
22
23
 
24
+ echo DIR is $DIR
25
+ echo BIN is $BIN
26
+
23
27
  EXP="[-0-9a-zA-Z]*$"
24
28
 
25
29
  function report {
package/bin/bash/push.sh CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/bin/bash
2
2
 
3
3
  DIR="$(dirname "$0")"
4
+ BIN="$(realpath "$DIR/..")"
4
5
 
5
6
  NODE_OPTIONS="${NODE_OPTIONS:---disable-warning=ExperimentalWarning}"
6
7
 
@@ -8,11 +9,11 @@ export NODE_OPTIONS=$NODE_OPTIONS # export NODE_OPTIONS='--disable-warning=Exper
8
9
 
9
10
  if [ -f "$HOME/.zshrc" ];
10
11
  then
11
- zsh "$DIR/z.sh"
12
+ zsh "$BIN/z.sh"
12
13
  else
13
14
  if [ -f "$HOME/.bashrc" ];
14
15
  then
15
- bash "$DIR/b.sh"
16
+ bash "$BIN/b.sh"
16
17
  fi
17
18
  fi
18
19
 
@@ -20,6 +21,9 @@ echo SSH auth sock is $SSH_AUTH_SOCK
20
21
  echo Home is $HOME
21
22
  echo Path is $PATH
22
23
 
24
+ echo DIR is $DIR
25
+ echo BIN is $BIN
26
+
23
27
  EXP="[-0-9a-zA-Z]*$"
24
28
 
25
29
  function report {
package/bin/bash/wipe.sh CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/bin/bash
2
2
 
3
3
  DIR="$(dirname "$0")"
4
+ BIN="$(realpath "$DIR/..")"
4
5
 
5
6
  NODE_OPTIONS="${NODE_OPTIONS:---disable-warning=ExperimentalWarning}"
6
7
 
@@ -8,11 +9,11 @@ export NODE_OPTIONS=$NODE_OPTIONS # export NODE_OPTIONS='--disable-warning=Exper
8
9
 
9
10
  if [ -f "$HOME/.zshrc" ];
10
11
  then
11
- zsh "$DIR/z.sh"
12
+ zsh "$BIN/z.sh"
12
13
  else
13
14
  if [ -f "$HOME/.bashrc" ];
14
15
  then
15
- bash "$DIR/b.sh"
16
+ bash "$BIN/b.sh"
16
17
  fi
17
18
  fi
18
19
 
@@ -20,6 +21,9 @@ echo SSH auth sock is $SSH_AUTH_SOCK
20
21
  echo Home is $HOME
21
22
  echo Path is $PATH
22
23
 
24
+ echo DIR is $DIR
25
+ echo BIN is $BIN
26
+
23
27
  EXP="[-0-9a-zA-Z]*$"
24
28
 
25
29
  function report {
package/bin/deps/deps.sh CHANGED
@@ -1,6 +1,10 @@
1
1
  #!/bin/bash
2
2
 
3
3
  DIR="$(dirname $(readlink -f "$0"))"
4
+ BIN="$(realpath "$DIR/..")"
5
+
6
+ echo DIR is $DIR
7
+ echo BIN is $BIN
4
8
 
5
9
  NODE_OPTIONS="${NODE_OPTIONS:---disable-warning=ExperimentalWarning}"
6
10
 
@@ -8,13 +12,12 @@ export NODE_OPTIONS=$NODE_OPTIONS # export NODE_OPTIONS='--disable-warning=Exper
8
12
 
9
13
  if [ -f "$HOME/.zshrc" ];
10
14
  then
11
- zsh "$DIR/z.sh"
15
+ zsh "$BIN/z.sh"
12
16
  else
13
17
  if [ -f "$HOME/.bashrc" ];
14
18
  then
15
- bash "$DIR/b.sh"
19
+ bash "$BIN/b.sh"
16
20
  fi
17
21
  fi
18
22
 
19
- BIN="$(realpath "$DIR/..")"
20
23
  node "$BIN/node/deps.mjs" "$@"
@@ -1,6 +1,10 @@
1
1
  #!/bin/bash
2
2
 
3
3
  DIR="$(dirname $(readlink -f "$0"))"
4
+ BIN="$(realpath "$DIR/..")"
5
+
6
+ echo DIR is $DIR
7
+ echo BIN is $BIN
4
8
 
5
9
  NODE_OPTIONS="${NODE_OPTIONS:---disable-warning=ExperimentalWarning}"
6
10
 
@@ -8,13 +12,12 @@ export NODE_OPTIONS=$NODE_OPTIONS # export NODE_OPTIONS='--disable-warning=Exper
8
12
 
9
13
  if [ -f "$HOME/.zshrc" ];
10
14
  then
11
- zsh "$DIR/z.sh"
15
+ zsh "$BIN/z.sh"
12
16
  else
13
17
  if [ -f "$HOME/.bashrc" ];
14
18
  then
15
- bash "$DIR/b.sh"
19
+ bash "$BIN/b.sh"
16
20
  fi
17
21
  fi
18
22
 
19
- BIN="$(realpath "$DIR/..")"
20
23
  node "$BIN/node/execute.mjs" "$@"
package/bin/deps/head.sh CHANGED
@@ -1,6 +1,10 @@
1
1
  #!/bin/bash
2
2
 
3
3
  DIR="$(dirname $(readlink -f "$0"))"
4
+ BIN="$(realpath "$DIR/..")"
5
+
6
+ echo DIR is $DIR
7
+ echo BIN is $BIN
4
8
 
5
9
  NODE_OPTIONS="${NODE_OPTIONS:---disable-warning=ExperimentalWarning}"
6
10
 
@@ -8,13 +12,12 @@ export NODE_OPTIONS=$NODE_OPTIONS # export NODE_OPTIONS='--disable-warning=Exper
8
12
 
9
13
  if [ -f "$HOME/.zshrc" ];
10
14
  then
11
- zsh "$DIR/z.sh"
15
+ zsh "$BIN/z.sh"
12
16
  else
13
17
  if [ -f "$HOME/.bashrc" ];
14
18
  then
15
- bash "$DIR/b.sh"
19
+ bash "$BIN/b.sh"
16
20
  fi
17
21
  fi
18
22
 
19
- BIN="$(realpath "$DIR/..")"
20
23
  node "$BIN/node/head.mjs" "$@"
@@ -1,6 +1,10 @@
1
1
  #!/bin/bash
2
2
 
3
3
  DIR="$(dirname $(readlink -f "$0"))"
4
+ BIN="$(realpath "$DIR/..")"
5
+
6
+ echo DIR is $DIR
7
+ echo BIN is $BIN
4
8
 
5
9
  NODE_OPTIONS="${NODE_OPTIONS:---disable-warning=ExperimentalWarning}"
6
10
 
@@ -8,13 +12,12 @@ export NODE_OPTIONS=$NODE_OPTIONS # export NODE_OPTIONS='--disable-warning=Exper
8
12
 
9
13
  if [ -f "$HOME/.zshrc" ];
10
14
  then
11
- zsh "$DIR/z.sh"
15
+ zsh "$BIN/z.sh"
12
16
  else
13
17
  if [ -f "$HOME/.bashrc" ];
14
18
  then
15
- bash "$DIR/b.sh"
19
+ bash "$BIN/b.sh"
16
20
  fi
17
21
  fi
18
22
 
19
- BIN="$(realpath "$DIR/..")"
20
23
  node "$BIN/node/install.mjs" "$@"
package/bin/deps/push.sh CHANGED
@@ -1,6 +1,10 @@
1
1
  #!/bin/bash
2
2
 
3
3
  DIR="$(dirname $(readlink -f "$0"))"
4
+ BIN="$(realpath "$DIR/..")"
5
+
6
+ echo DIR is $DIR
7
+ echo BIN is $BIN
4
8
 
5
9
  NODE_OPTIONS="${NODE_OPTIONS:---disable-warning=ExperimentalWarning}"
6
10
 
@@ -8,13 +12,12 @@ export NODE_OPTIONS=$NODE_OPTIONS # export NODE_OPTIONS='--disable-warning=Exper
8
12
 
9
13
  if [ -f "$HOME/.zshrc" ];
10
14
  then
11
- zsh "$DIR/z.sh"
15
+ zsh "$BIN/z.sh"
12
16
  else
13
17
  if [ -f "$HOME/.bashrc" ];
14
18
  then
15
- bash "$DIR/b.sh"
19
+ bash "$BIN/b.sh"
16
20
  fi
17
21
  fi
18
22
 
19
- BIN="$(realpath "$DIR/..")"
20
23
  node "$BIN/node/push.mjs" "$@"
package/bin/deps/wipe.sh CHANGED
@@ -1,6 +1,10 @@
1
1
  #!/bin/bash
2
2
 
3
3
  DIR="$(dirname $(readlink -f "$0"))"
4
+ BIN="$(realpath "$DIR/..")"
5
+
6
+ echo DIR is $DIR
7
+ echo BIN is $BIN
4
8
 
5
9
  NODE_OPTIONS="${NODE_OPTIONS:---disable-warning=ExperimentalWarning}"
6
10
 
@@ -8,13 +12,12 @@ export NODE_OPTIONS=$NODE_OPTIONS # export NODE_OPTIONS='--disable-warning=Exper
8
12
 
9
13
  if [ -f "$HOME/.zshrc" ];
10
14
  then
11
- zsh "$DIR/z.sh"
15
+ zsh "$BIN/z.sh"
12
16
  else
13
17
  if [ -f "$HOME/.bashrc" ];
14
18
  then
15
- bash "$DIR/b.sh"
19
+ bash "$BIN/b.sh"
16
20
  fi
17
21
  fi
18
22
 
19
- BIN="$(realpath "$DIR/..")"
20
23
  node "$BIN/node/wipe.mjs" "$@"
package/bin/deps.sh CHANGED
@@ -6,6 +6,8 @@ NODE_OPTIONS="${NODE_OPTIONS:---disable-warning=ExperimentalWarning}"
6
6
 
7
7
  export NODE_OPTIONS=$NODE_OPTIONS # export NODE_OPTIONS='--disable-warning=ExperimentalWarning'
8
8
 
9
+ echo "$DIR/z.sh"
10
+
9
11
  if [ -f "$HOME/.zshrc" ];
10
12
  then
11
13
  zsh "$DIR/z.sh"
package/bin/node/deps.mjs CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  import debug from 'debug'
4
4
 
5
- import PATH from '#where-am-i'
6
-
7
5
  import {
8
6
  exec
9
7
  } from 'node:child_process'
@@ -19,7 +17,8 @@ import {
19
17
  } from '#deps/bin/common'
20
18
 
21
19
  import {
22
- PLATFORM
20
+ PLATFORM,
21
+ BIN
23
22
  } from '#deps/src/common/env'
24
23
 
25
24
  import {
@@ -36,8 +35,8 @@ debug.enable(DEBUG)
36
35
 
37
36
  const command = (
38
37
  PLATFORM === 'win32'
39
- ? `bash "${join(PATH, '.\\bin\\bash\\deps.sh')}"`
40
- : `bash '${join(PATH, './bin/bash/deps.sh')}'`
38
+ ? `bash "${join(BIN, '.\\bash\\deps.sh')}"`
39
+ : `bash '${join(BIN, './bash/deps.sh')}'`
41
40
  )
42
41
 
43
42
  const args = getArgs()
package/bin/node/head.mjs CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  import debug from 'debug'
4
4
 
5
- import PATH from '#where-am-i'
6
-
7
5
  import {
8
6
  exec
9
7
  } from 'node:child_process'
@@ -19,7 +17,8 @@ import {
19
17
  } from '#deps/bin/common'
20
18
 
21
19
  import {
22
- PLATFORM
20
+ PLATFORM,
21
+ BIN
23
22
  } from '#deps/src/common/env'
24
23
 
25
24
  import {
@@ -36,8 +35,8 @@ debug.enable(DEBUG)
36
35
 
37
36
  const command = (
38
37
  PLATFORM === 'win32'
39
- ? `bash "${join(PATH, '.\\bin\\bash\\head.sh')}"`
40
- : `bash '${join(PATH, './bin/bash/head.sh')}'`
38
+ ? `bash "${join(BIN, '.\\bash\\head.sh')}"`
39
+ : `bash '${join(BIN, './bash/head.sh')}'`
41
40
  )
42
41
 
43
42
  const args = getArgs()
package/bin/node/push.mjs CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  import debug from 'debug'
4
4
 
5
- import PATH from '#where-am-i'
6
-
7
5
  import {
8
6
  exec
9
7
  } from 'node:child_process'
@@ -19,7 +17,8 @@ import {
19
17
  } from '#deps/bin/common'
20
18
 
21
19
  import {
22
- PLATFORM
20
+ PLATFORM,
21
+ BIN
23
22
  } from '#deps/src/common/env'
24
23
 
25
24
  import {
@@ -36,8 +35,8 @@ debug.enable(DEBUG)
36
35
 
37
36
  const command = (
38
37
  PLATFORM === 'win32'
39
- ? `bash "${join(PATH, '.\\bin\\bash\\push.sh')}"`
40
- : `bash '${join(PATH, './bin/bash/push.sh')}'`
38
+ ? `bash "${join(BIN, '.\\bash\\push.sh')}"`
39
+ : `bash '${join(BIN, './bash/push.sh')}'`
41
40
  )
42
41
 
43
42
  const args = getArgs()
package/bin/node/wipe.mjs CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  import debug from 'debug'
4
4
 
5
- import PATH from '#where-am-i'
6
-
7
5
  import {
8
6
  exec
9
7
  } from 'node:child_process'
@@ -19,7 +17,8 @@ import {
19
17
  } from '#deps/bin/common'
20
18
 
21
19
  import {
22
- PLATFORM
20
+ PLATFORM,
21
+ BIN
23
22
  } from '#deps/src/common/env'
24
23
 
25
24
  import {
@@ -36,8 +35,8 @@ debug.enable(DEBUG)
36
35
 
37
36
  const command = (
38
37
  PLATFORM === 'win32'
39
- ? `bash "${join(PATH, '.\\bin\\bash\\wipe.sh')}"`
40
- : `bash '${join(PATH, './bin/bash/wipe.sh')}'`
38
+ ? `bash "${join(BIN, '.\\bash\\wipe.sh')}"`
39
+ : `bash '${join(BIN, './bash/wipe.sh')}'`
41
40
  )
42
41
 
43
42
  const args = getArgs()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
@@ -27,9 +27,9 @@ const {
27
27
  }
28
28
  } = process
29
29
 
30
- const BASH = PLATFORM === 'win32'
31
- ? join(PATH, '.\\bin\\bash')
32
- : join(PATH, './bin/bash')
30
+ const BIN = PLATFORM === 'win32'
31
+ ? join(PATH, '.\\bin') // \\bash')
32
+ : join(PATH, './bin') // /bash')
33
33
 
34
34
  const log = debug('@modernpoacher/deps')
35
35
 
@@ -40,5 +40,5 @@ export {
40
40
  VERSION,
41
41
  PLATFORM,
42
42
  HOME,
43
- BASH
43
+ BIN
44
44
  }
@@ -12,7 +12,7 @@ import {
12
12
 
13
13
  import {
14
14
  HOME,
15
- BASH,
15
+ BIN,
16
16
  VERSION,
17
17
  PLATFORM
18
18
  } from '#deps/src/common/env'
@@ -42,11 +42,11 @@ echo "\${BASH_REMATCH[0]}"
42
42
  const GIT_PULL = `
43
43
  if [ -f "${HOME}/.zshrc" ];
44
44
  then
45
- zsh "${BASH}/z.sh"
45
+ zsh "${BIN}/z.sh"
46
46
  else
47
47
  if [ -f "${HOME}/.bashrc" ];
48
48
  then
49
- bash "${BASH}/b.sh"
49
+ bash "${BIN}/b.sh"
50
50
  fi
51
51
  fi
52
52
 
@@ -56,11 +56,11 @@ git pull
56
56
  const GIT_PUSH = `
57
57
  if [ -f "${HOME}/.zshrc" ];
58
58
  then
59
- zsh "${BASH}/z.sh"
59
+ zsh "${BIN}/z.sh"
60
60
  else
61
61
  if [ -f "${HOME}/.bashrc" ];
62
62
  then
63
- bash "${BASH}/b.sh"
63
+ bash "${BIN}/b.sh"
64
64
  fi
65
65
  fi
66
66
 
@@ -70,11 +70,11 @@ git push
70
70
  const GIT_PUSH_TAGS = `
71
71
  if [ -f "${HOME}/.zshrc" ];
72
72
  then
73
- zsh "${BASH}/z.sh"
73
+ zsh "${BIN}/z.sh"
74
74
  else
75
75
  if [ -f "${HOME}/.bashrc" ];
76
76
  then
77
- bash "${BASH}/b.sh"
77
+ bash "${BIN}/b.sh"
78
78
  fi
79
79
  fi
80
80
 
package/bin/bash/b.sh DELETED
@@ -1,14 +0,0 @@
1
- #!/bin/bash
2
-
3
- cd "$HOME"
4
-
5
- if [ -f .bashrc ];
6
- then
7
- source .bashrc
8
- fi
9
-
10
- export ZSH_AUTH_SOCK=$ZSH_AUTH_SOCK
11
- export PATH=$PATH
12
- export HOME=$HOME
13
-
14
- exit 0
package/bin/bash/z.sh DELETED
@@ -1,14 +0,0 @@
1
- #!/bin/zsh
2
-
3
- cd "$HOME"
4
-
5
- if [ -f .zshrc ];
6
- then
7
- source .zshrc
8
- fi
9
-
10
- export ZSH_AUTH_SOCK=$ZSH_AUTH_SOCK
11
- export PATH=$PATH
12
- export HOME=$HOME
13
-
14
- exit 0
package/bin/deps/b.sh DELETED
@@ -1,14 +0,0 @@
1
- #!/bin/bash
2
-
3
- cd "$HOME"
4
-
5
- if [ -f .bashrc ];
6
- then
7
- source .bashrc
8
- fi
9
-
10
- export ZSH_AUTH_SOCK=$ZSH_AUTH_SOCK
11
- export PATH=$PATH
12
- export HOME=$HOME
13
-
14
- exit 0
package/bin/deps/z.sh DELETED
@@ -1,14 +0,0 @@
1
- #!/bin/zsh
2
-
3
- cd "$HOME"
4
-
5
- if [ -f .zshrc ];
6
- then
7
- source .zshrc
8
- fi
9
-
10
- export ZSH_AUTH_SOCK=$ZSH_AUTH_SOCK
11
- export PATH=$PATH
12
- export HOME=$HOME
13
-
14
- exit 0