chore: update cli to use named imports

This commit is contained in:
blam
2021-02-12 14:55:18 +01:00
parent 5a5ad7a26a
commit b61296b98d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ export async function loadCliConfig(options: Options) {
}
function findPackages(packages: any[], fromPackage: string): string[] {
const PackageGraph = require('@lerna/package-graph');
const { PackageGraph } = require('@lerna/package-graph');
const graph = new PackageGraph(packages);
+1 -1
View File
@@ -220,7 +220,7 @@ async function moveToDistWorkspace(
async function findTargetPackages(pkgNames: string[]): Promise<LernaPackage[]> {
const { Project } = require('@lerna/project');
const PackageGraph = require('@lerna/package-graph');
const { PackageGraph } = require('@lerna/package-graph');
const project = new Project(paths.targetDir);
const packages = await project.getPackages();