Skip to content

Commit d274b36

Browse files
committed
Build.ts arg types
1 parent 287cee1 commit d274b36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/build.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ngPackagr } from 'ng-packagr';
66

77
const rootPackage = import(`${process.cwd()}/package.json`);
88

9-
async function replaceVersions(path) {
9+
async function replaceVersions(path: string) {
1010
const root = await rootPackage;
1111
var pkg = await import(path);
1212
Object.keys(pkg.peerDependencies).forEach(peer => {
@@ -16,7 +16,7 @@ async function replaceVersions(path) {
1616
return writeFile(path, JSON.stringify(pkg, null, 2));
1717
}
1818

19-
function spawnPromise(command, args) {
19+
function spawnPromise(command: string, args: string[]) {
2020
return new Promise(resolve => {
2121
const cmd = spawn(command, args);
2222
cmd.on('close', resolve);
@@ -45,7 +45,7 @@ async function replaceDynamicImportsForUMD() {
4545
]);
4646
}
4747

48-
async function measure(module) {
48+
async function measure(module: string) {
4949
const path = `${process.cwd()}/dist/packages-dist/bundles/${module}.umd.js`;
5050
const file = await readFile(path);
5151
const gzip = prettySize(gzipSync(file), true);

0 commit comments

Comments
 (0)