@jigging/jig 0.0.0 → 0.1.0-alpha.10

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/jig ADDED
@@ -0,0 +1,42 @@
1
+ #!/bin/sh
2
+
3
+ set -eu
4
+
5
+ fail() {
6
+ printf '%s\n' 'JIG_COMMAND_UNAVAILABLE: the installed Jig runtime is unavailable' >&2
7
+ exit 2
8
+ }
9
+
10
+ case $0 in
11
+ *'
12
+ '*) fail ;;
13
+ esac
14
+
15
+ if [ -x /usr/bin/readlink ]; then
16
+ readlink=/usr/bin/readlink
17
+ elif [ -x /bin/readlink ]; then
18
+ readlink=/bin/readlink
19
+ else
20
+ fail
21
+ fi
22
+ launcher=$($readlink -f -- "$0") || fail
23
+ [ "${launcher##*/}" = jig ] || fail
24
+ bin=${launcher%/*}
25
+ [ "${bin##*/}" = bin ] || fail
26
+ release=${bin%/*}
27
+ entry=$release/libexec/installed-cli.js
28
+ [ -f "$entry" ] || fail
29
+
30
+ nested=$release/node_modules/@oven/bun-linux-x64-baseline/bin/bun
31
+ hoisted=$release/../../@oven/bun-linux-x64-baseline/bin/bun
32
+ if [ -f "$nested" ] && [ -x "$nested" ]; then
33
+ runtime=$nested
34
+ elif [ -f "$hoisted" ] && [ -x "$hoisted" ]; then
35
+ runtime=$hoisted
36
+ else
37
+ fail
38
+ fi
39
+ runtime=$($readlink -f -- "$runtime") || fail
40
+
41
+ unset BUN_BE_BUN BUN_OPTIONS NODE_OPTIONS
42
+ exec "$runtime" --no-env-file --no-install --config=/dev/null "$entry" "$@"
@@ -0,0 +1 @@
1
+ export { defineBinding, defineJig, discover, type JigDefinitionInput, type PackageBindingInput, } from "./project/author.js";