Skip to content

Commit

Permalink
chore: replace also in rum folder
Browse files Browse the repository at this point in the history
  • Loading branch information
kptdobe committed Dec 24, 2024
1 parent bac3c2f commit d6d8341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/imports.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ VERSION_FROM_PACKAGE_JSON=$(node -e "console.log(require('./package.json').devDe

# find all import maps in the project, and replace the import named $1 with the value of $2

find ./tools/oversight -name "*.html" | while read file; do
find ./tools/oversight ./tools/rum -name "*.html" | while read file; do
echo "Processing $file upgrading $DEPENDENCY to $VERSION_FROM_PACKAGE_JSON"
# Use sed to replace the import map entry with the new version
sed -i.bak "s|\"@adobe/rum-distiller\": \"https://esm.sh/@adobe/rum-distiller@[0-9.]*\"|\"@adobe/rum-distiller\": \"https://esm.sh/@adobe/rum-distiller@$VERSION_FROM_PACKAGE_JSON\"|g" "$file"
Expand Down

0 comments on commit d6d8341

Please sign in to comment.