I am having a certain conundrum and can't seem to find the correct solution.
The current project I am working in uses npm to manage our packages. We haven't been using package-lock.json for a while, but need to re-include it.
The problem is, we have a few custom packages (ex. "my-components") that we install via npm that contain our code for components, etc. For these packages, we always want to include the latest version when doing an "npm install".
My question is, is there any way to exclude certain packages for the package-lock.json? Or is there any other soution to this problem?
Ideally, all packages other than our custom packages would be locked to a specific version, and then our custom packages would always be installed from latest.
EDIT: To clarify, the main issue I am having is that for development, we're not pulling specific versions of our custom packages. We are just pulling whatever happens to be on the #dev branch. For specific releases we have a version number, but we're fine there. We want to be able to have our custom packages say "Always pull whatever happens to be on the dev branch whenever an npm install is ran" but we want all of our other packages to be locked to a specific version.