Update build/npm-post-build.sh

Signed-off-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
This commit is contained in:
Joas Schilling 2024-06-14 08:53:02 +02:00 committed by GitHub
parent f069b30e27
commit bcbef7aaa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ npm run sass:icons
# Add licenses for source maps
if [ -d "dist" ]; then
for f in dist/*.js; do
# If license file and source map exists copy license for the sourcemap
# If license file and source map exists copy license for the source map
if [ -f "$f.license" ] && [ -f "$f.map" ]; then
# Remove existing link
[ -e "$f.map.license" ] || [ -L "$f.map.license" ] && rm "$f.map.license"