aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> 2022-04-21 00:55:15 -0700
committerGravatar GitHub <noreply@github.com> 2022-04-21 00:55:15 -0700
commitab1d83fe8d888bbb63ada992b2628d1635630e03 (patch)
tree7e4b7648831da0d3ba78e618bdb98cb3952367e6
parent5e739acfbbf10dea455e8bf97cd420116fa8ae45 (diff)
downloadbun-ab1d83fe8d888bbb63ada992b2628d1635630e03.tar.gz
bun-ab1d83fe8d888bbb63ada992b2628d1635630e03.tar.zst
bun-ab1d83fe8d888bbb63ada992b2628d1635630e03.zip
Add `bun run ${script-name}` clarification (#151)
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index c4227dfad..5733a2aa8 100644
--- a/README.md
+++ b/README.md
@@ -1012,6 +1012,10 @@ You can disable that with `--silent`
bun run --silent clean
```
+`bun run ${script-name}` runs the equivalent of `npm run script-name`. For example, `bun run dev` runs the `dev` script in `package.json`, which may sometimes spin up non-bun processes.
+
+`bun run ${javascript-file.js}` will run it with bun, as long as the file doesn't have a node shebang.
+
To print a list of `scripts`, `bun run` without additional args:
```bash