Optional node_modules installs

I dunno why but for some reason I thought that Wasp detects npm installs and keeps track of them. Maybe cus of this file installedFullStackNpmDependencies.json but would it make sense for Wasp to track chances in package.json file and if there are any - only then do a
npm install
or have some sort of flag to disable the modules installation
I was playing around yesterday with deployment to Railway, and I needed to do a few small changes in the source code (not .wasp folder) and build the codebase frequently afterwards and node_modules were installed every single time, whereas I think there might be a different way to do it.
Like keep a ref to the dependencies and track any chances in there on each build command. If any detected - reinstall them entirely. If none - just delete everything apart from
node_modules
folder.
Alternative approach, add a CLI flag to disable installs manually (might be easier and preferred way)
Was this page helpful?