{"tool":"bun","tool_display":"Bun","intent":"watch-for-file-changes-and-rebuild","intent_display":"watch for file changes and rebuild","title":"Bun Command: watch for file changes and rebuild","command_string":"bun build <path/to/entry.ts> --outfile <path/to/output.js> --watch","raw_command_string":"bun build {{path/to/entry.ts}} --outfile {{path/to/output.js}} --watch","description":"Exact CLI syntax to watch for file changes and rebuild using Bun.","usage_scenario":"During active development to ensure timely recompilation upon file modification.","scenario_context":"Utilize watch mode for seamless development and instantaneous feedback on code changes.","simulated_output":"Watching for changes in path/to/entry.ts...\n\n   File changed: path/to/entry.ts\n   Building...\n\n   Success! Output written to path/to/output.js\n   Next build will trigger on further changes.","how_to_steps":["Run the command: `bun build path/to/entry.ts --outfile path/to/output.js --watch`","Make a change in the 'path/to/entry.ts' file.","Observe the rebuild process and check for the success message in the terminal."],"inferred_category":"Package Management","canonical_url":"https://www.syntaxstandard.com/bun/watch-for-file-changes-and-rebuild"}