File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export function main() {
72
72
const base = JSON . parse ( process . env . BASE_DIST_FILES ) ;
73
73
/** @type {Record<string, {size: number, size_gz: number}> } */
74
74
const pr = JSON . parse ( process . env . PR_DIST_FILES ) ;
75
- let output = '<h1>📊 Dist packagesFiles size difference</h1>\n\n' ;
75
+ let output = '<h1>📊 Packages dist files size difference</h1>\n\n' ;
76
76
77
77
/**
78
78
* @type {Map<string, {
@@ -139,7 +139,7 @@ export function main() {
139
139
return output ;
140
140
}
141
141
142
- output += 'Thanks for the PR! Here is the difference in size of the dist packagesFiles between the base and the PR.\n' ;
142
+ output += 'Thanks for the PR! Here is the difference in size of the packages dist files between the base branch and the PR.\n' ;
143
143
output += 'Please review the changes and make sure they are expected.\n\n' ;
144
144
output += `<table>
145
145
<thead><tr><th>File</th><th>Before (Size / Gzip)</th><th>After (Size / Gzip)</th></tr></thead>
Original file line number Diff line number Diff line change 25
25
run : |
26
26
set -e
27
27
28
- FILES=$(find src -mindepth 2 -path '*/assets/dist/*' \( -name "*.js" -o -name "*.css" \) -not \( -path '*/tests/*' -o -path '*/public/*' -o -path '*/vendor/*' \) | sort | while read -r file; do
28
+ FILES=$(find src -mindepth 2 -type f - path '*/assets/dist/*' -not \( -path '*/tests/*' -o -path '*/public/*' -o -path '*/vendor/*' \) | sort | while read -r file; do
29
29
echo "{\"$file\": {\"size\": $(wc -c < "$file"), \"size_gz\": $(gzip -c "$file" | wc -c)}}"
30
30
done | jq -s 'add' -c)
31
31
38
38
run : |
39
39
set -e
40
40
41
- FILES=$(find src -mindepth 2 -path '*/assets/dist/*' \( -name "*.js" -o -name "*.css" \) -not \( -path '*/tests/*' -o -path '*/public/*' -o -path '*/vendor/*' \) | sort | while read -r file; do
41
+ FILES=$(find src -mindepth 2 -type f - path '*/assets/dist/*' -not \( -path '*/tests/*' -o -path '*/public/*' -o -path '*/vendor/*' \) | sort | while read -r file; do
42
42
echo "{\"$file\": {\"size\": $(wc -c < "$file"), \"size_gz\": $(gzip -c "$file" | wc -c)}}"
43
43
done | jq -s 'add' -c)
44
44
You can’t perform that action at this time.
0 commit comments