diff --git a/tools/imports.sh b/tools/imports.sh old mode 100644 new mode 100755 index 98e447c8..330deb1a --- a/tools/imports.sh +++ b/tools/imports.sh @@ -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"