Run extra commands when doing bun run --watch src/index.ts
#9216
Labels
enhancement
New feature or request
bun run --watch src/index.ts
#9216
What is the problem this feature would solve?
I want to basically run a codegen script whenever src/index.ts changes. Currently it only runs src/index.ts when src/index.ts's imports change. I think there's no option currently to run custom scripts when src/index.ts changes.
Current scripts in my package.json:
This process is actually pretty straightforward with nodemon. I just need to watch changes in src and then have an exec field for the commands I want to run.
Since I'm using Bun, I'm kind of staying away from node stuff lol. Is this possible to do without nodemon?
What is the feature you are proposing to solve the problem?
--watch or hot reload.
What alternatives have you considered?
Nodemon
The text was updated successfully, but these errors were encountered: