bug: Upgrade to Lerna 4

This commit is contained in:
blam
2021-02-12 10:14:53 +01:00
parent 8155fad537
commit 1d2bceafd5
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ async function readBuildInfo() {
}
async function loadLernaPackages(): Promise<LernaPackage[]> {
const LernaProject = require('@lerna/project');
const { LernaProject } = require('@lerna/project');
const project = new LernaProject(cliPaths.targetDir);
return project.getPackages();
}
+1 -1
View File
@@ -28,7 +28,7 @@ export async function loadCliConfig(options: Options) {
const configPaths = options.args.map(arg => paths.resolveTarget(arg));
// Consider all packages in the monorepo when loading in config
const LernaProject = require('@lerna/project');
const { LernaProject } = require('@lerna/project');
const project = new LernaProject(paths.targetDir);
const packages = await project.getPackages();
+1 -1
View File
@@ -219,7 +219,7 @@ async function moveToDistWorkspace(
}
async function findTargetPackages(pkgNames: string[]): Promise<LernaPackage[]> {
const LernaProject = require('@lerna/project');
const { LernaProject } = require('@lerna/project');
const PackageGraph = require('@lerna/package-graph');
const project = new LernaProject(paths.targetDir);
@@ -59,7 +59,7 @@ describe('mapDependencies', () => {
it('should read dependencies', async () => {
// Make sure all modules involved in package discovery are in the module cache before we mock fs
const LernaProject = require('@lerna/project');
const { LernaProject } = require('@lerna/project');
const project = new LernaProject(paths.targetDir);
await project.getPackages();
+1 -1
View File
@@ -67,7 +67,7 @@ export async function fetchPackageInfo(
export async function mapDependencies(
targetDir: string,
): Promise<Map<string, PkgVersionInfo[]>> {
const LernaProject = require('@lerna/project');
const { LernaProject } = require('@lerna/project');
const project = new LernaProject(targetDir);
const packages = await project.getPackages();