bun-run
Execute a JavaScript/TypeScript file, or a script from package.json. tldr-pages
On several platforms
Several platforms
Run a script defined in package.json
bun run script_nameIdentifyRun a JavaScript or TypeScript file directly
bun run path/to/file.tsIdentifyRun a file in "watch" mode (restarts automatically when the file changes)
bun run --watch path/to/file.tsIdentifyRun a file using a specific configuration file
bun run --config path/to/bunfig.toml path/to/file.tsIdentify