|
@@ -15,7 +15,10 @@ export function getLernaPaths(basePath = '.'): string[] {
|
|
|
basePath = path.resolve(basePath);
|
|
|
let baseConfig = require(path.join(basePath, 'package.json'));
|
|
|
let paths: string[] = [];
|
|
|
- let packages = baseConfig.workspaces.packages || baseConfig.workspaces;
|
|
|
+ let packages =
|
|
|
+ baseConfig.workspaces.packages ||
|
|
|
+ baseConfig.workspaces ||
|
|
|
+ baseConfig.packages;
|
|
|
for (let config of packages) {
|
|
|
paths = paths.concat(glob.sync(path.join(basePath, config)));
|
|
|
}
|