Update README.md

This commit is contained in:
Jarred Sumner
2021-10-26 17:15:35 -07:00
parent 79eb8d9d78
commit 9a70d8daa2

View File

@@ -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.