diff options
author | 2022-04-21 00:55:15 -0700 | |
---|---|---|
committer | 2022-04-21 00:55:15 -0700 | |
commit | ab1d83fe8d888bbb63ada992b2628d1635630e03 (patch) | |
tree | 7e4b7648831da0d3ba78e618bdb98cb3952367e6 | |
parent | 5e739acfbbf10dea455e8bf97cd420116fa8ae45 (diff) | |
download | bun-ab1d83fe8d888bbb63ada992b2628d1635630e03.tar.gz bun-ab1d83fe8d888bbb63ada992b2628d1635630e03.tar.zst bun-ab1d83fe8d888bbb63ada992b2628d1635630e03.zip |
Add `bun run ${script-name}` clarification (#151)
-rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |