We have a simple package with a dependency to a gitlab repository.
At the moment we have a simple dependency on the master branch by using:
what we want now:
We want to add versions to our packages by creating tags in git. So we created tags named like
And we want to use semver to get those versions, so we used:
what happens now
If we run a clean install without any node_modules present, it works as expected.
But if we run
npm update the newest tag isn’t pulled from git.
If we have installed 1.1.0 and there is a 1.2.0 present, the new version isn’t used. It will only update if change the entry in the package.json, or delete the node_modules folder. But all other packages get their updates without those actions.
what we expect
npm update should update gitlab dependencies as well. We can live that the package.json isn’t updated (mentioned here), but the latest matching version should be used after
npm version: 6.4.1
node version: 10.0.0
GitLab Enterprise Edition 10.8.5-ee