-
-
Save jsoizo/0b3a75cea729af5cb4fef83e1c400220 to your computer and use it in GitHub Desktop.
scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ -f ./package.json ]; then | |
npm run $(cat ./package.json | jq -r '.scripts | keys[]' | peco) | |
else | |
echo "package.json not found" >&2 | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment