@modernpoacher/deps 2.2.4 → 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 +6 -2
- package/bin/bash/head.sh +6 -2
- package/bin/bash/push.sh +6 -2
- package/bin/bash/wipe.sh +6 -2
- package/bin/deps/deps.sh +6 -3
- package/bin/deps/execute.sh +6 -3
- package/bin/deps/head.sh +6 -3
- package/bin/deps/install.sh +6 -3
- package/bin/deps/push.sh +6 -3
- package/bin/deps/wipe.sh +6 -3
- package/bin/deps.sh +2 -0
- package/bin/node/deps.mjs +4 -5
- package/bin/node/head.mjs +4 -5
- package/bin/node/push.mjs +4 -5
- package/bin/node/wipe.mjs +4 -5
- package/package.json +1 -1
- package/src/common/env/index.mjs +4 -4
- package/src/common/git/index.mjs +7 -7
- package/bin/bash/b.sh +0 -14
- package/bin/bash/z.sh +0 -14
- package/bin/deps/b.sh +0 -14
- package/bin/deps/z.sh +0 -14
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 "$
|
|
17
|
+
zsh "$BIN/z.sh"
|
|
14
18
|
else
|
|
15
19
|
if [ -f "$HOME/.bashrc" ];
|
|
16
20
|
then
|
|
17
|
-
bash "$
|
|
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 "$
|
|
15
|
+
zsh "$BIN/z.sh"
|
|
12
16
|
else
|
|
13
17
|
if [ -f "$HOME/.bashrc" ];
|
|
14
18
|
then
|
|
15
|
-
bash "$
|
|
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 "$
|
|
15
|
+
zsh "$BIN/z.sh"
|
|
12
16
|
else
|
|
13
17
|
if [ -f "$HOME/.bashrc" ];
|
|
14
18
|
then
|
|
15
|
-
bash "$
|
|
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 "$
|
|
15
|
+
zsh "$BIN/z.sh"
|
|
12
16
|
else
|
|
13
17
|
if [ -f "$HOME/.bashrc" ];
|
|
14
18
|
then
|
|
15
|
-
bash "$
|
|
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 "$
|
|
15
|
+
zsh "$BIN/z.sh"
|
|
12
16
|
else
|
|
13
17
|
if [ -f "$HOME/.bashrc" ];
|
|
14
18
|
then
|
|
15
|
-
bash "$
|
|
19
|
+
bash "$BIN/b.sh"
|
|
16
20
|
fi
|
|
17
21
|
fi
|
|
18
22
|
|
|
19
|
-
BIN="$(realpath "$DIR/..")"
|
|
20
23
|
node "$BIN/node/deps.mjs" "$@"
|
package/bin/deps/execute.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 "$
|
|
15
|
+
zsh "$BIN/z.sh"
|
|
12
16
|
else
|
|
13
17
|
if [ -f "$HOME/.bashrc" ];
|
|
14
18
|
then
|
|
15
|
-
bash "$
|
|
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 "$
|
|
15
|
+
zsh "$BIN/z.sh"
|
|
12
16
|
else
|
|
13
17
|
if [ -f "$HOME/.bashrc" ];
|
|
14
18
|
then
|
|
15
|
-
bash "$
|
|
19
|
+
bash "$BIN/b.sh"
|
|
16
20
|
fi
|
|
17
21
|
fi
|
|
18
22
|
|
|
19
|
-
BIN="$(realpath "$DIR/..")"
|
|
20
23
|
node "$BIN/node/head.mjs" "$@"
|
package/bin/deps/install.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 "$
|
|
15
|
+
zsh "$BIN/z.sh"
|
|
12
16
|
else
|
|
13
17
|
if [ -f "$HOME/.bashrc" ];
|
|
14
18
|
then
|
|
15
|
-
bash "$
|
|
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 "$
|
|
15
|
+
zsh "$BIN/z.sh"
|
|
12
16
|
else
|
|
13
17
|
if [ -f "$HOME/.bashrc" ];
|
|
14
18
|
then
|
|
15
|
-
bash "$
|
|
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 "$
|
|
15
|
+
zsh "$BIN/z.sh"
|
|
12
16
|
else
|
|
13
17
|
if [ -f "$HOME/.bashrc" ];
|
|
14
18
|
then
|
|
15
|
-
bash "$
|
|
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
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(
|
|
40
|
-
: `bash '${join(
|
|
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(
|
|
40
|
-
: `bash '${join(
|
|
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(
|
|
40
|
-
: `bash '${join(
|
|
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(
|
|
40
|
-
: `bash '${join(
|
|
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
package/src/common/env/index.mjs
CHANGED
|
@@ -27,9 +27,9 @@ const {
|
|
|
27
27
|
}
|
|
28
28
|
} = process
|
|
29
29
|
|
|
30
|
-
const
|
|
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
|
-
|
|
43
|
+
BIN
|
|
44
44
|
}
|
package/src/common/git/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
|
|
13
13
|
import {
|
|
14
14
|
HOME,
|
|
15
|
-
|
|
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 "${
|
|
45
|
+
zsh "${BIN}/z.sh"
|
|
46
46
|
else
|
|
47
47
|
if [ -f "${HOME}/.bashrc" ];
|
|
48
48
|
then
|
|
49
|
-
bash "${
|
|
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 "${
|
|
59
|
+
zsh "${BIN}/z.sh"
|
|
60
60
|
else
|
|
61
61
|
if [ -f "${HOME}/.bashrc" ];
|
|
62
62
|
then
|
|
63
|
-
bash "${
|
|
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 "${
|
|
73
|
+
zsh "${BIN}/z.sh"
|
|
74
74
|
else
|
|
75
75
|
if [ -f "${HOME}/.bashrc" ];
|
|
76
76
|
then
|
|
77
|
-
bash "${
|
|
77
|
+
bash "${BIN}/b.sh"
|
|
78
78
|
fi
|
|
79
79
|
fi
|
|
80
80
|
|
package/bin/bash/b.sh
DELETED
package/bin/bash/z.sh
DELETED
package/bin/deps/b.sh
DELETED