package.json overwriting/resetting upon project save.

I've got a custom main-menu system setup by redirecting the starting window to a separate html file before falling back onto the actual games index.html.

I did this by changing the "main" path in the package.json file to the path of the new replacement menu.

The issue is that all my changes get overwritten every time I save the project in MZ. Is there some way to stop it from regenerating package.json every single time I press ctrl+s?

"resizable": false gets removed too, allowing people to freely resize the window of the game. As well as any npm packages I import.

Everything works fine until I make a change and save the project, at which point I have to readd all my changes manually.
You can mark your project's package.json file as read-only via the OS file explorer. This causes a harmless warning message when the editor tries to save, which can be annoying, but it does preserve the contents of the file.

You may need to remove the read-only flag for deployment, I haven't tested.

Original thread: https://forums.rpgmakerweb.com/threads/package-json-overwriting-resetting-upon-project-save.161802/