This reduces the number of copied files (let esbuild build directly in the proper output folder).
Also avoid copying the source files after every change (avoiding ~3-4 seconds of copy).
Overall, a change in GDJS/Extensions results in 1-3 seconds of build, instead of almost 10 sometimes due to the large number of file copies.
Only show in developer changelog
This was broken because the GDJS source files were missing, only the built files were considered.
The disadvantage of this change is having to copy more files everytime a change is made. The impact should be limited though as the copy time is in the same magnitude as before, and the alternative would be to emit .d.ts files which would force to run TypeScript compiler as part of the GDJS build process, and would make the TypeScript compiler time to complete at least 2x slower.
To keep iterations fast when working on GDJS, this approach is preferable.
Don't show in changelog
* Add watcher to automatically import changes to GDJS/extensions in newIDE
This watches for changes in GDJS or extensions and automatically run the "import-GDJS-Runtime.js" script.
This allows for faster iterations when working on GDJS or JS extensions: do some changes, verify that the console says that changes were imported, launch the preview
* Adds an option in preferences to deactivate this in case of issues.
* Also move BrowserS3GDJSFinder and LocalGDJSFinder in newIDE/app/src/GameEngineFinder.
* Update READMEs to mention automatic import of GDJS and extensions runtime sources