Skip to content

Commit 4cc7dfa

Browse files
authored
fix: lerna publish tp use correct default package dir (#135)
1 parent 60ce93d commit 4cc7dfa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/repository.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ export class LernaRepo extends Repository {
395395
private async getPackagePaths(): Promise<string[]> {
396396
const workingDir = pwd().stdout;
397397
const lernaJson = (await fs.readJson('lerna.json')) as LernaJson;
398-
const packageGlobs = lernaJson.packages || ['*'];
398+
// https://github.com/lerna/lerna#lernajson
399+
// "By default, lerna initializes the packages list as ["packages/*"]"
400+
const packageGlobs = lernaJson.packages || ['packages/*'];
399401
const packages = packageGlobs
400402
.map((pGlob) => glob.sync(pGlob))
401403
.reduce((x, y) => x.concat(y), [])

0 commit comments

Comments
 (0)