I need to get a hold of package.json

Hi,

We develop our application without internet access. We have a Maven Repo and NPM repo internally. However every time we want to upgrade Vaadin Flow to newest version we miss a lot of NPM packages. We need to sync this packages over via an api we have which takes the name of the artifact and the version. We have a script for this which takes in package.json. However Since Vaadin v24.0.0 node_modules/, package.json, and more is deleted after build. I need to get hold of package.json but have not found out how after testing out different flags and properties. Anyone who are able to tell me how?

Hello, this should be controlled by vaadin.clean.build.frontend.files=false system property or <cleanFrontendFiles>false</cleanFrontendFiles> plugin configuration parameter. Default is true. Vaadin removes generated frontend files if they didn’t exist before bundle build.

I could not make the property work, but adding <cleanFrontendFiles/> did. With your help I also manged to find the information online.