Revert "Ensure workspaces key exists in parent package.json (#3989)"

This reverts commit 47d2d94118.
This commit is contained in:
Joe Haddad
2018-09-18 14:14:28 -04:00
parent cc328d6287
commit 10e8fd5531

View File

@@ -140,9 +140,6 @@ const getMonorepoPkgPaths = () => {
if (monoPkgPath) {
// get monorepo config from yarn workspace
const pkgPatterns = require(monoPkgPath).workspaces;
if (pkgPatterns == null) {
return [];
}
const pkgPaths = findPkgs(path.dirname(monoPkgPath), pkgPatterns);
// only include monorepo pkgs if app itself is included in monorepo
if (pkgPaths.indexOf(appDirectory) !== -1) {