@modernpoacher/deps 2.2.3 → 2.2.5

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,10 @@
3
3
  # https://google.github.io/styleguide/shellguide.html#s7-naming-conventions
4
4
 
5
5
  DIR="$(dirname "$0")"
6
+ BIN="$(realpath "$DIR/..")"
7
+
8
+ echo DIR is $DIR
9
+ echo BIN is $BIN
6
10
 
7
11
  NODE_OPTIONS="${NODE_OPTIONS:---disable-warning=ExperimentalWarning}"
8
12
 
@@ -10,11 +14,11 @@ export NODE_OPTIONS=$NODE_OPTIONS # export NODE_OPTIONS='--disable-warning=Exper
10
14
 
11
15
  if [ -f "$HOME/.zshrc" ];
12
16
  then
13
- zsh "$DIR/z.sh"
17
+ zsh "$BIN/z.sh"
14
18
  else
15
19
  if [ -f "$HOME/.bashrc" ];
16
20
  then
17
- bash "$DIR/b.sh"
21
+ bash "$BIN/b.sh"
18
22
  fi
19
23
  fi
20
24
 
package/bin/bash/head.sh CHANGED
@@ -1,6 +1,10 @@
1
1
  #!/bin/bash
2
2
 
3
3
  DIR="$(dirname "$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,11 +12,11 @@ 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
 
package/bin/bash/push.sh CHANGED
@@ -1,6 +1,10 @@
1
1
  #!/bin/bash
2
2
 
3
3
  DIR="$(dirname "$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,11 +12,11 @@ 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
 
package/bin/bash/wipe.sh CHANGED
@@ -1,6 +1,10 @@
1
1
  #!/bin/bash
2
2
 
3
3
  DIR="$(dirname "$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,11 +12,11 @@ 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
 
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
- node "$BIN/node/deps.mjs"
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
- node "$BIN/node/execute.mjs"
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
- node "$BIN/node/head.mjs"
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
- node "$BIN/node/install.mjs"
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
- node "$BIN/node/push.mjs"
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
- node "$BIN/node/wipe.mjs"
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"
@@ -16,4 +18,4 @@ else
16
18
  fi
17
19
  fi
18
20
 
19
- node "$DIR/deps.mjs"
21
+ node "$DIR/deps.mjs" "$@"
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.3",
3
+ "version": "2.2.5",
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