File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
dev-packages/size-limit-gh-action Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,7 @@ class SizeLimit {
81
81
}
82
82
83
83
parseResults ( output ) {
84
- // Ignore any output before `[`, as the command itself may be logged...
85
- const stripped = output . slice ( output . indexOf ( '[' ) ) . trim ( ) ;
86
-
87
- const results = JSON . parse ( stripped ) ;
84
+ const results = JSON . parse ( output ) ;
88
85
89
86
return results . reduce ( ( current , result ) => {
90
87
let time = { } ;
@@ -154,7 +151,7 @@ class SizeLimit {
154
151
async function execSizeLimit ( ) {
155
152
let output = '' ;
156
153
157
- const status = await exec ( 'yarn' , [ ' size-limit' , ' --json'] , {
154
+ const status = await exec ( 'yarn run --silent size-limit --json' , {
158
155
windowsVerbatimArguments : false ,
159
156
ignoreReturnCode : true ,
160
157
cwd : process . cwd ( ) ,
You can’t perform that action at this time.
0 commit comments