Replace lerna-get-packages with our own implementation

This commit is contained in:
Fabio Berger
2018-07-19 15:50:21 +02:00
parent c839965c05
commit 6f540e3e58
9 changed files with 79 additions and 51 deletions

View File

@@ -1,7 +1,6 @@
#!/usr/bin/env node
import * as fs from 'fs';
import lernaGetPackages = require('lerna-get-packages');
import * as _ from 'lodash';
import * as path from 'path';
import { exec as execAsync } from 'promisify-child-process';
@@ -11,7 +10,7 @@ import { utils } from './utils/utils';
(async () => {
const monorepoRootPath = path.join(__dirname, '../../..');
const lernaPackages = lernaGetPackages(monorepoRootPath);
const lernaPackages = utils.getLernaPackages(monorepoRootPath);
const installablePackages = _.filter(
lernaPackages,
lernaPackage =>