How to exclude a module from the package-lock.json?
I need to exclude an specific module in order to not be versioned in the package-lock.json. Is this possible?
My problem is that I have a local module (packaged in a different project). For my convenience, I always export this module with the same name: localmodule-1.1.1.tgz.
Then I import it in another project like that:
...
"dependencies": {
"localmodule": "file:../LocalModule/dist/localmodule-1.1.1.tgz"
},
...
Every time I change the contents of the module, the project that is importing it breaks with the error Unhandled rejection Error: Integrity check failed. The checksum doesn't match because the content has changed (the checksum is stored in the package-lock.json).
Is it possible to not include this module inside the package-lock.json? I would like to avoid changing the name of the module every time I change any of its contents.
Disclaimer: I am not talking about the versioning of the package-lock.json. The file will be versioned. I am just interested in excluding an specific module from the content of the file itself.