Skip to content

Commit ac230ea

Browse files
author
Mike Pham
committed
feat: disable lerna support
1 parent 3d5600b commit ac230ea

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

src/Core/Project.ts

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Files } from './Files'
2-
import { LernaConfig, NPM } from './Interfaces'
2+
import { NPM } from './Interfaces'
33
import { Log, Logger } from './Logger'
44

55
export class Project {
@@ -55,31 +55,9 @@ export class Project {
5555
}
5656

5757
private workspaces(npm: NPM): Promise<Project> {
58-
/*
59-
const lernafile = Files.join(this.path, 'lerna.json')
60-
61-
if (await Files.exists(lernafile)) {
62-
this.log.debug('lerna-packages', this.path)
63-
return this.lerna(lernafile, this)
64-
}
65-
*/
6658
return this.yarn(this)
6759
}
6860

69-
private async lerna(filepath: string, project: Project): Promise<Project> {
70-
const lerna = await Files.json<LernaConfig>(filepath)
71-
if (lerna.packages && lerna.useWorkspaces) {
72-
lerna.packages.forEach(async workspace => {
73-
const workspaceName = workspace.substring(0, workspace.indexOf('/*'))
74-
const workspacePath = Files.join(project.path, workspaceName)
75-
const children = await this.loadProjects(workspacePath)
76-
children.forEach(child => this.children.push(child))
77-
this.log.debug('lerna-package', workspaceName)
78-
})
79-
}
80-
return this
81-
}
82-
8361
private async yarn(project: Project): Promise<Project> {
8462
const npm = await this.npm
8563
if (npm.workspaces) {

0 commit comments

Comments
 (0)