mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 12:48:00 +08:00
Revert "Ensure workspaces key exists in parent package.json (#3989)"
This reverts commit 47d2d94118.
This commit is contained in:
3
packages/react-scripts/config/paths.js
vendored
3
packages/react-scripts/config/paths.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user