We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60ce93d commit 4cc7dfaCopy full SHA for 4cc7dfa
src/repository.ts
@@ -395,7 +395,9 @@ export class LernaRepo extends Repository {
395
private async getPackagePaths(): Promise<string[]> {
396
const workingDir = pwd().stdout;
397
const lernaJson = (await fs.readJson('lerna.json')) as LernaJson;
398
- const packageGlobs = lernaJson.packages || ['*'];
+ // https://github.com/lerna/lerna#lernajson
399
+ // "By default, lerna initializes the packages list as ["packages/*"]"
400
+ const packageGlobs = lernaJson.packages || ['packages/*'];
401
const packages = packageGlobs
402
.map((pGlob) => glob.sync(pGlob))
403
.reduce((x, y) => x.concat(y), [])
0 commit comments