@@ -6,7 +6,7 @@ import { ngPackagr } from 'ng-packagr';
6
6
7
7
const rootPackage = import ( `${ process . cwd ( ) } /package.json` ) ;
8
8
9
- async function replaceVersions ( path ) {
9
+ async function replaceVersions ( path : string ) {
10
10
const root = await rootPackage ;
11
11
var pkg = await import ( path ) ;
12
12
Object . keys ( pkg . peerDependencies ) . forEach ( peer => {
@@ -16,7 +16,7 @@ async function replaceVersions(path) {
16
16
return writeFile ( path , JSON . stringify ( pkg , null , 2 ) ) ;
17
17
}
18
18
19
- function spawnPromise ( command , args ) {
19
+ function spawnPromise ( command : string , args : string [ ] ) {
20
20
return new Promise ( resolve => {
21
21
const cmd = spawn ( command , args ) ;
22
22
cmd . on ( 'close' , resolve ) ;
@@ -45,7 +45,7 @@ async function replaceDynamicImportsForUMD() {
45
45
] ) ;
46
46
}
47
47
48
- async function measure ( module ) {
48
+ async function measure ( module : string ) {
49
49
const path = `${ process . cwd ( ) } /dist/packages-dist/bundles/${ module } .umd.js` ;
50
50
const file = await readFile ( path ) ;
51
51
const gzip = prettySize ( gzipSync ( file ) , true ) ;
0 commit comments