diff --git a/docs/api/transpiler.md b/docs/api/transpiler.md index 308a4e152d..d24eb4ac2c 100644 --- a/docs/api/transpiler.md +++ b/docs/api/transpiler.md @@ -137,7 +137,8 @@ Each import in the `imports` array has a `path` and `kind`. Bun categories impor - `import-rule`: `@import 'foo.css'` - `url-token`: `url('./foo.png')` +- `entry-point-build`: `import {foo} from 'bun:entry'` +- `entry-point-run`: `bun ./mymodule` --> ## `.scanImports()` @@ -267,7 +268,8 @@ type Import = { // The import was injected by Bun | "internal"  // Entry point (not common) - | "entry-point" + | "entry-point-build" + | "entry-point-run" } const transpiler = new Bun.Transpiler({ loader: "jsx" }); diff --git a/docs/bundler/index.md b/docs/bundler/index.md index dbb7a95038..8ada85b24c 100644 --- a/docs/bundler/index.md +++ b/docs/bundler/index.md @@ -533,7 +533,8 @@ export type BuildManifest = { }; export type ImportKind = - | "entry-point" + | "entry-point-build" + | "entry-point-run" | "import-statement" | "require-call" | "dynamic-import" diff --git a/docs/cli/run.md b/docs/cli/run.md index b1a7891140..cc4ae91751 100644 --- a/docs/cli/run.md +++ b/docs/cli/run.md @@ -106,13 +106,13 @@ $ bun run clean Done. ``` -Bun executes the script command in a subshell. It checks for the following shells in order, using the first one it finds: `bash`, `sh`, `zsh`. +Bun executes the script command in a subshell. On Linux & macOS, it checks for the following shells in order, using the first one it finds: `bash`, `sh`, `zsh`. On windows, it uses [bun shell](https://bun.sh/docs/runtime/shell) to support bash-like syntax and many common commands. {% callout %} ⚡️ The startup time for `npm run` on Linux is roughly 170ms; with Bun it is `6ms`. {% /callout %} -If there is a name conflict between a `package.json` script and a built-in `bun` command (`install`, `dev`, `upgrade`, etc.) Bun's built-in command takes precedence. In this case, use the more explicit `bun run` command to execute your package script. +Scripts can also be run with the shorter command `bun