aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-05 10:43:48 +0800
committerFabio Berger <me@fabioberger.com>2018-04-05 10:43:48 +0800
commit9745dfe2f4f15f0c23c150f3b375ff9ed2ace063 (patch)
tree215e2b24fcbb6dd6530fa6019fd6af1f9f61de28
parent29d38593d6313412fb820f2311bb9accb66e6684 (diff)
downloaddexon-sol-tools-9745dfe2f4f15f0c23c150f3b375ff9ed2ace063.tar
dexon-sol-tools-9745dfe2f4f15f0c23c150f3b375ff9ed2ace063.tar.gz
dexon-sol-tools-9745dfe2f4f15f0c23c150f3b375ff9ed2ace063.tar.bz2
dexon-sol-tools-9745dfe2f4f15f0c23c150f3b375ff9ed2ace063.tar.lz
dexon-sol-tools-9745dfe2f4f15f0c23c150f3b375ff9ed2ace063.tar.xz
dexon-sol-tools-9745dfe2f4f15f0c23c150f3b375ff9ed2ace063.tar.zst
dexon-sol-tools-9745dfe2f4f15f0c23c150f3b375ff9ed2ace063.zip
Use depcheck async support
-rw-r--r--packages/monorepo-scripts/src/find_unused_dependencies.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/packages/monorepo-scripts/src/find_unused_dependencies.ts b/packages/monorepo-scripts/src/find_unused_dependencies.ts
index 374cba2e3..fa6088a7d 100644
--- a/packages/monorepo-scripts/src/find_unused_dependencies.ts
+++ b/packages/monorepo-scripts/src/find_unused_dependencies.ts
@@ -1,6 +1,6 @@
#!/usr/bin/env node
-import * as depcheck from 'depcheck';
+import * as depcheckAsync from 'depcheck';
import * as fs from 'fs';
import lernaGetPackages = require('lerna-get-packages');
import * as _ from 'lodash';
@@ -35,11 +35,3 @@ const IGNORE_PACKAGES = ['@0xproject/deployer'];
utils.log(err);
process.exit(1);
});
-
-async function depcheckAsync(path: string, opts: any): Promise<depcheck.Results> {
- return new Promise<depcheck.Results>((resolve, reject) => {
- depcheck(path, opts, (unused: any) => {
- resolve(unused);
- });
- });
-}