10 lines
199 B
Bash
Executable file
10 lines
199 B
Bash
Executable file
#!/bin/sh
|
|
|
|
script="$1"
|
|
if test -z "$script"; then
|
|
echo "No script set"
|
|
exit 1
|
|
fi
|
|
run="$(jq -r ".scripts[\"${script}\"]" < package.json)"
|
|
echo "> $run"
|
|
PATH="./node_modules/.bin:$PATH" sh -c "$run"
|