diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-04 02:54:58 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-04 02:54:58 +0800 |
commit | b2c423dd8410b884357fdb476012e4a213e52580 (patch) | |
tree | 56950fec113a288a3fb5ac81a3445a837e35fc00 /packages | |
parent | e9cb5c069a46a2402fb2e930b3f14a71e056d207 (diff) | |
download | dexon-sol-tools-b2c423dd8410b884357fdb476012e4a213e52580.tar dexon-sol-tools-b2c423dd8410b884357fdb476012e4a213e52580.tar.gz dexon-sol-tools-b2c423dd8410b884357fdb476012e4a213e52580.tar.bz2 dexon-sol-tools-b2c423dd8410b884357fdb476012e4a213e52580.tar.lz dexon-sol-tools-b2c423dd8410b884357fdb476012e4a213e52580.tar.xz dexon-sol-tools-b2c423dd8410b884357fdb476012e4a213e52580.tar.zst dexon-sol-tools-b2c423dd8410b884357fdb476012e4a213e52580.zip |
Use Results type
Diffstat (limited to 'packages')
-rw-r--r-- | packages/monorepo-scripts/src/find_unused_dependencies.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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<void>((resolve, reject) => { +async function depcheckAsync(path: string, opts: any): Promise<depcheck.Results> { + return new Promise<depcheck.Results>((resolve, reject) => { depcheck(path, opts, (unused: any) => { resolve(unused); }); |