Skip to content

Commit

Permalink
Trim du output
Browse files Browse the repository at this point in the history
  • Loading branch information
illright committed Dec 17, 2024
1 parent 50e6d0a commit 5eb2bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/bundle-size.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
result-encoding: string
script: |
function parseDuOutput(output) {
return Object.fromEntries(output.split('\n').map(line => {
return Object.fromEntries(output.trim().split('\n').map(line => {
const [size, folderName] = line.split(/\s+/);
const [_packages, packageName, _dist] = folderName.split('/');
return [packageName, parseInt(size, 10)];
Expand Down

0 comments on commit 5eb2bd0

Please sign in to comment.