File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 5050 # to old versions (^4.0.x) which are still correct and should not be updated to new versions (^5.0.x)
5151 # that don't exist on npm yet. We restore these specific entries from the main branch.
5252 # Restore original entries for @ui5/*-npm packages to avoid unintended updates
53- git show origin/main:package-lock.json | jq -r '.packages | to_entries[] | select(.key | test("node_modules/@ui5/(builder|cli|fs|logger|project|server)-npm$")) | .key' | while read key; do
53+ # Note: npm aliases can be in node_modules or internal/documentation/node_modules
54+ git show origin/main:package-lock.json | jq -r '.packages | to_entries[] | select(.key | test("(node_modules|internal/documentation/node_modules)/@ui5/(builder|cli|fs|logger|project|server)-npm$")) | .key' | while read key; do
5455 original_entry=$(git show origin/main:package-lock.json | jq ".packages[\"$key\"]")
5556 jq --tab --arg key "$key" --argjson entry "$original_entry" '.packages[$key] = $entry' package-lock.json > tmp.$$.json && mv tmp.$$.json package-lock.json
5657 done
You can’t perform that action at this time.
0 commit comments