Wappler upgrades cleans custom install node modules

Wappler Version: Latest
Operating System: macOS Monteray
Server Model: Any
Database Type: N/A
Hosting Type: N/A

Expected behaviour

What do you think should happen?

When upgrading to a new version keep user custom settings in tack.

Actual behaviour

What actually happens?

When we upgrade every one of our projects breaks as the upgrade overwrites the package.json file and by the look of it clears the npm folder. We use various node modules in our projects.

How to reproduce

Import any npm module with the --save flag. Upgrade to a newer version of Wappler and your imported node modules are gone.

Wappler manages only its own modules needed for its NodeJS integration.
When some of those are unused - they are cleaned. Only those. Usage is determined by the Server Connect actions used.

Is there a specific module that gets cleaned in your projects? And you use it outside of server connect?

This is one of the most important ones for us:

jsonwebtoken

Due to our clients, we have to use custom encoded JWTs for authentication

We also use:
uuid
mongoose

There was an issue with cleaning indeed jsonwebtoken module but this was resolved in the last update.

So check with the latest Wappler 4.5.3

Thank you