tommi on npm side, make sure the dev commands continues running and doesn't quit. It should automatically watch the files and recompile when something changes.
On Flarum side, you need to manually clear the cache, or enable debug mode to disable the javascript cache. A development forum is usually left with debug mode enabled to bypass the cache.