mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Update README.md
This commit is contained in:
@@ -516,8 +516,6 @@ The default shell it uses is `bash`, but if that's not found, it tries `sh` and
|
||||
|
||||
`bun run` automatically adds any parent `node_modules/.bin` to `$PATH` and if no scripts match, it will load that binary instead. That means you can run executables from packages too.
|
||||
|
||||
`bun run` supports lifecycle hooks like `post${task}` and `pre{task}`. If they exist, they will run matching the behavior of npm clients. If the `pre${task}` fails, the next task will not be run. There is currently no flag to skip these lifecycle tasks if they exist, if you want that file an issue.
|
||||
|
||||
```bash
|
||||
# If you use Relay
|
||||
bun run relay-compiler
|
||||
@@ -539,6 +537,8 @@ bun run relay-compiler -- -–help
|
||||
bun run relay-compiler --schema foo.graphql
|
||||
```
|
||||
|
||||
`bun run` supports lifecycle hooks like `post${task}` and `pre{task}`. If they exist, they will run matching the behavior of npm clients. If the `pre${task}` fails, the next task will not be run. There is currently no flag to skip these lifecycle tasks if they exist, if you want that file an issue.
|
||||
|
||||
### `bun create`
|
||||
|
||||
`bun create` is a fast way to create a new project from a template.
|
||||
|
||||
Reference in New Issue
Block a user