Skip to content

Commit 1e67786

Browse files
authored
Fix dangerfile formatting (getsentry#2619)
* Fix dangerfile formatting
1 parent 031b020 commit 1e67786

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dangerfile.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export default async () => {
4747
}
4848

4949
schedule(async () => {
50-
const result = (await promisify(exec)('cd packages/browser; yarn size:check')).stdout;
51-
message(`@sentry/browser bundle gzip'ed minified size: *(${result.split('\n')[3]}) (${result.split('\n')[4]})*`);
50+
const lines = (await promisify(exec)('cd packages/browser; yarn size:check')).stdout.split('\n');
51+
const es5size = lines.find(v => v.startsWith('ES5'));
52+
const es6size = lines.find(v => v.startsWith('ES6'));
53+
message(`@sentry/browser bundle gzip'ed minified size: *(${es5size}) (${es6size})*`);
5254
});
5355
};

0 commit comments

Comments
 (0)