How to auto-rebuild so package changes get seen in Umbraco 17 (Using Jetbrains Rider)

I am using the opionated package and have started to build my first package. I am starting to get the hang of things, even built my own section and started filling it out. But one thing I noticed is that for every change I make I have to stop the debugger, open a terminal, and run “npm run build” again. Then my changes get picked up. I tried to do “npm run watch” but that seems to just build once and then do nothing. I don’t know if it makes any difference but I am using Jetbrains Rider as my IDE.

Any help on streamlining my process so I can see changes faster would be very appreciated. thanks

So it turns out the package.json file, as talked about in the docs, was already in the solution and had the correct NPM watch code in it but since it was not included in the solution the watch command was not picking up the file to watch it. Once included it seems to be working

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.