@lerna/project
Advanced tools
Comparing version 5.1.8 to 5.2.0
23
index.js
@@ -22,2 +22,3 @@ "use strict"; | ||
* @property {string[]} packages | ||
* @property {boolean} useNx | ||
* @property {boolean} useWorkspaces | ||
@@ -113,3 +114,3 @@ * @property {string} version | ||
dedent` | ||
Yarn workspaces need to be defined in the root package.json. | ||
Workspaces need to be defined in the root package.json. | ||
See: https://github.com/lerna/lerna/blob/master/commands/bootstrap/README.md#--use-workspaces | ||
@@ -123,3 +124,21 @@ ` | ||
return this.config.packages || [Project.PACKAGE_GLOB]; | ||
if (this.manifest.get("workspaces")) { | ||
log.warn( | ||
"EWORKSPACES", | ||
dedent` | ||
Workspaces exist in the root package.json, but Lerna is not configured to use them. | ||
To fix this and have Lerna use workspaces to resolve packages, set \`useWorkspaces: true\` in lerna.json. | ||
` | ||
); | ||
} | ||
if (this.config.packages) { | ||
return this.config.packages; | ||
} | ||
log.warn( | ||
"EPACKAGES", | ||
`No packages defined in lerna.json. Defaulting to packages in ${Project.PACKAGE_GLOB}` | ||
); | ||
return [Project.PACKAGE_GLOB]; | ||
} | ||
@@ -126,0 +145,0 @@ |
{ | ||
"name": "@lerna/project", | ||
"version": "5.1.8", | ||
"version": "5.2.0", | ||
"description": "Lerna project configuration", | ||
@@ -35,4 +35,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@lerna/package": "5.1.8", | ||
"@lerna/validation-error": "5.1.8", | ||
"@lerna/package": "5.2.0", | ||
"@lerna/validation-error": "5.2.0", | ||
"cosmiconfig": "^7.0.0", | ||
@@ -49,3 +49,3 @@ "dedent": "^0.7.0", | ||
}, | ||
"gitHead": "c567a29d352bc97dfc4e3dc5dd0799fc35db2026" | ||
"gitHead": "4f43ba15b0024f87ec04c68522c78bcd1edbc185" | ||
} |
437
19407
8
+ Added@lerna/package@5.2.0(transitive)
+ Added@lerna/validation-error@5.2.0(transitive)
- Removed@lerna/package@5.1.8(transitive)
- Removed@lerna/validation-error@5.1.8(transitive)
Updated@lerna/package@5.2.0