This file contains hidden or 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/bash | |
# runs - A generic script to run any command from package.json scripts, | |
# automatically detecting the package manager (bun, pnpm, yarn, npm). | |
# Usage: runs <script_name> [args...] | |
# Example: runs dev | |
# Example: runs build --prod | |
# This script should be placed in a directory in your PATH, like ~/bin/. | |
PACKAGE_MANAGER_ORDER=("bun" "pnpm" "yarn" "npm") |