From b2c423dd8410b884357fdb476012e4a213e52580 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 4 Apr 2018 03:54:58 +0900 Subject: Use Results type --- packages/monorepo-scripts/src/find_unused_dependencies.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/monorepo-scripts') diff --git a/packages/monorepo-scripts/src/find_unused_dependencies.ts b/packages/monorepo-scripts/src/find_unused_dependencies.ts index 1b47f2458..374cba2e3 100644 --- a/packages/monorepo-scripts/src/find_unused_dependencies.ts +++ b/packages/monorepo-scripts/src/find_unused_dependencies.ts @@ -23,7 +23,7 @@ const IGNORE_PACKAGES = ['@0xproject/deployer']; utils.log(`Checking ${lernaPackage.package.name} for unused deps. This might take a while...`); const configs = {}; - const result: any = await depcheckAsync(lernaPackage.location, configs); + const result = await depcheckAsync(lernaPackage.location, configs); if (!_.isEmpty(result.dependencies)) { _.each(result.dependencies, dep => { utils.log(dep); @@ -36,8 +36,8 @@ const IGNORE_PACKAGES = ['@0xproject/deployer']; process.exit(1); }); -async function depcheckAsync(path: string, opts: any) { - return new Promise((resolve, reject) => { +async function depcheckAsync(path: string, opts: any): Promise { + return new Promise((resolve, reject) => { depcheck(path, opts, (unused: any) => { resolve(unused); }); -- cgit