Skip to content

Commit

Permalink
Revert "Add support for new yarn workspaces config format (facebook#4001
Browse files Browse the repository at this point in the history
)"

This reverts commit 9690bc8.
  • Loading branch information
Timer committed Sep 18, 2018
1 parent 02b30d6 commit d8c2da5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react-dev-utils/workspaceUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ const findPkgs = (rootPath, globPatterns) => {
const findMonorepo = appDir => {
const monoPkgPath = findPkg.sync(path.resolve(appDir, '..'));
const monoPkg = monoPkgPath && require(monoPkgPath);
const workspaces = monoPkg && monoPkg.workspaces;
const patterns = (workspaces && workspaces.packages) || workspaces;
const patterns = monoPkg && monoPkg.workspaces;
const isYarnWs = Boolean(patterns);
const allPkgs = patterns && findPkgs(path.dirname(monoPkgPath), patterns);
const isIncluded = dir => allPkgs && allPkgs.indexOf(dir) !== -1;
Expand Down

0 comments on commit d8c2da5

Please sign in to comment.