chore: update cli to use named imports
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user