diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-19 22:26:45 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-19 22:26:45 +0800 |
commit | 1df9370bc21e93267b5432668967118d7001abf2 (patch) | |
tree | f93659fd5bb33c988893ffdb467bfaa091ddbd0a /packages/monorepo-scripts/src/test_installation.ts | |
parent | 7d840c7a1825f9aad16f3ab644e6f31819fefd59 (diff) | |
download | dexon-0x-contracts-1df9370bc21e93267b5432668967118d7001abf2.tar dexon-0x-contracts-1df9370bc21e93267b5432668967118d7001abf2.tar.gz dexon-0x-contracts-1df9370bc21e93267b5432668967118d7001abf2.tar.bz2 dexon-0x-contracts-1df9370bc21e93267b5432668967118d7001abf2.tar.lz dexon-0x-contracts-1df9370bc21e93267b5432668967118d7001abf2.tar.xz dexon-0x-contracts-1df9370bc21e93267b5432668967118d7001abf2.tar.zst dexon-0x-contracts-1df9370bc21e93267b5432668967118d7001abf2.zip |
Renames to remove mention of Lerna
Diffstat (limited to 'packages/monorepo-scripts/src/test_installation.ts')
-rw-r--r-- | packages/monorepo-scripts/src/test_installation.ts | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/packages/monorepo-scripts/src/test_installation.ts b/packages/monorepo-scripts/src/test_installation.ts index 34d065c58..668d4ef1d 100644 --- a/packages/monorepo-scripts/src/test_installation.ts +++ b/packages/monorepo-scripts/src/test_installation.ts @@ -10,17 +10,14 @@ import { utils } from './utils/utils'; (async () => { const monorepoRootPath = path.join(__dirname, '../../..'); - const lernaPackages = utils.getLernaPackages(monorepoRootPath); + const packages = utils.getPackages(monorepoRootPath); const installablePackages = _.filter( - lernaPackages, - lernaPackage => - !lernaPackage.package.private && - !_.isUndefined(lernaPackage.package.main) && - lernaPackage.package.main.endsWith('.js'), + packages, + pkg => !pkg.packageJson.private && !_.isUndefined(pkg.packageJson.main) && pkg.packageJson.main.endsWith('.js'), ); - for (const installableLernaPackage of installablePackages) { - const packagePath = installableLernaPackage.location; - const packageName = installableLernaPackage.package.name; + for (const installablePackage of installablePackages) { + const packagePath = installablePackage.location; + const packageName = installablePackage.packageJson.name; utils.log(`Testing ${packageName}`); let result = await execAsync('npm pack', { cwd: packagePath }); const packedPackageFileName = result.stdout.trim(); |