Opencast issues#1123 Paella dependency lockdown protection #448
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
This requests changing the name of the non-publishable "package-lock.json" to the publishable "npm-shirkwrap.json". Ref opencast/opencast#1123
What is the current behavior? (You can also link to an open issue here)
When Opencast's module/engage-paella-player runs it's npm ci (or npm install), Paella's package-lock.json file is ignored and the paella's package.json is used to retrieve the latest matching iterations of Paella's dependencies. Instead of the dependency versions described in Paella's package-lock.json.
What does this implement/fix? Explain your changes.
Changing the package-lock to npm-shrinkwrap honors Paella's locked dependency versions when paella is built within Opencast project's engage-paella-player module.
Does this close any currently open issues?
closes Opencast issue #1123 which is that Paella's lunr 2.3.7 dependency was not published with a lunr.min.js file so the Paella player's gulpfile build fails.
Does this PR introduce a breaking change? What changes might users need to make in their application due to this PR?
Unknown how this might cause issues.
Any other comments?
I'm making a companion temporary pull fix for Opencast's enage-paella-player. It hard codes a node_modules/paellalayer/npm-shrinkwrap.json file in it, so it probably (hopefully) won't be approved before this change is accepted here.