Skip to content

Commit 1c9cf81

Browse files
fix
1 parent 24cdc4a commit 1c9cf81

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/build_map.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ find _just_data -mindepth 1 -print | while read -r path; do
5959
"$first_line" != "// _just doNotModify+hide" ]]; then
6060
echo " _just_Manifest0.push(\"$relative_path\");" >> deploy/_just/static/$BUILD_ID/_justManifest.js
6161
echo "\"$relative_path\"," >> deploy/api/_just_build-manifest
62-
echo "$relative_path\n" >> deploy/api/_just_build-manifest.txt
62+
echo "$relative_path" >> deploy/api/_just_build-manifest.txt
6363
fi
6464
fi
6565
done
@@ -149,8 +149,8 @@ find deploy -mindepth 1 -print | while read -r path; do
149149
"$first_line" != "// _just doNotModify+hide" ]]; then
150150
buildManifestJSONString="{\"type\": \"$type\", \"path\": \"$relative_path\", \"size\": {\"bytes\": $file_size, \"string\": \"$(human_readable_size $file_size)\"}}"
151151
echo " _just_buildManifest0.push($buildManifestJSONString);" >> deploy/_just/static/$BUILD_ID/buildManifest.js
152-
echo "$buildManifestJSONString" >> deploy/api/build-manifest
153-
echo "($type) $relative_path - $(human_readable_size $file_size)\n" >> deploy/api/build-manifest.txt
152+
echo "$buildManifestJSONString," >> deploy/api/build-manifest
153+
echo "($type) $relative_path - $(human_readable_size $file_size)" >> deploy/api/build-manifest.txt
154154
fi
155155
fi
156156

@@ -179,5 +179,9 @@ for html_file in deploy/*.html; do
179179
done
180180

181181
# Add API Endpoints
182+
echo "{}]" >> deploy/api/build-manifest
183+
echo "" >> deploy/api/build-manifest.txt
184+
echo "\"\"]" >> deploy/api/_just_build-manifest
185+
echo "" >> deploy/api/_just_build-manifest.txt
182186
cp deploy/api/_just_build-manifest deploy/api/_just_build-manifest.json
183187
cp deploy/api/build-manifest deploy/api/build-manifest.json

0 commit comments

Comments
 (0)