File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { spawn } from 'child_process' ;
2
2
import { copy , readFile , writeFile } from 'fs-extra' ;
3
3
import { prettySize } from 'pretty-size' ;
4
- import { sync as gzipSync } from 'gzip-size' ;
4
+ import { file as gzipSizeFile } from 'gzip-size' ;
5
5
import { dirname , join } from 'path' ;
6
6
import { keys as tsKeys } from 'ts-transformer-keys' ;
7
7
import firebase from 'firebase/app' ;
@@ -87,10 +87,10 @@ async function compileSchematics() {
87
87
}
88
88
89
89
async function measure ( module : string ) {
90
- const path = dest ( 'bundles' , `${ module } .umd.min. js` ) ;
90
+ const path = dest ( 'bundles' , `${ module } .umd.js` ) ;
91
91
const file = await readFile ( path ) ;
92
- const gzip = prettySize ( gzipSync ( file ) , true ) ;
93
92
const size = prettySize ( file . byteLength , true ) ;
93
+ const gzip = prettySize ( await gzipSizeFile ( path ) , true ) ;
94
94
return { size, gzip } ;
95
95
}
96
96
You can’t perform that action at this time.
0 commit comments