diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-19 21:50:21 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-19 21:50:21 +0800 |
commit | 6f540e3e58e6cf921d038f9537d428d28078836f (patch) | |
tree | d374416f212fe4989b96083d23ee4ca9d9329095 /packages/monorepo-scripts/src/find_unused_dependencies.ts | |
parent | c839965c05719091311683da9d367c43908f4f2f (diff) | |
download | dexon-0x-contracts-6f540e3e58e6cf921d038f9537d428d28078836f.tar.gz dexon-0x-contracts-6f540e3e58e6cf921d038f9537d428d28078836f.tar.zst dexon-0x-contracts-6f540e3e58e6cf921d038f9537d428d28078836f.zip |
Replace lerna-get-packages with our own implementation
Diffstat (limited to 'packages/monorepo-scripts/src/find_unused_dependencies.ts')
-rw-r--r-- | packages/monorepo-scripts/src/find_unused_dependencies.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/monorepo-scripts/src/find_unused_dependencies.ts b/packages/monorepo-scripts/src/find_unused_dependencies.ts index 11e48ab13..1a36aceee 100644 --- a/packages/monorepo-scripts/src/find_unused_dependencies.ts +++ b/packages/monorepo-scripts/src/find_unused_dependencies.ts @@ -1,7 +1,6 @@ #!/usr/bin/env node import * as depcheckAsync from 'depcheck'; -import lernaGetPackages = require('lerna-get-packages'); import * as _ from 'lodash'; import { constants } from './constants'; @@ -13,7 +12,7 @@ const IGNORE_PACKAGES = ['@0xproject/sol-compiler']; (async () => { utils.log('*** NOTE: Not all deps listed here are actually not required. ***'); utils.log("*** `depcheck` isn't perfect so double check before actually removing any. ***\n"); - const lernaPackages = lernaGetPackages(constants.monorepoRootPath); + const lernaPackages = utils.getLernaPackages(constants.monorepoRootPath); for (const lernaPackage of lernaPackages) { if (_.includes(IGNORE_PACKAGES, lernaPackage.package.name)) { continue; // skip |