Skip to content

Commit 339e9dc

Browse files
committed
Fix find src paths
1 parent 1163b73 commit 339e9dc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/react-scripts/config/yarn-workspaces.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ const filterSrcPaths = (srcPaths, dependencies) => {
183183
srcPaths.forEach(path => {
184184
const pkg = getPkg(path);
185185

186-
if (dependencies && Reflect.has(dependencies, pkg.name)) {
186+
if (
187+
dependencies &&
188+
Reflect.has(dependencies, pkg.name) &&
189+
!filteredPaths.includes(path)
190+
) {
187191
filteredPaths.push(path);
188192

189193
const subDeps = depsTable[pkg.name].deps;
@@ -265,7 +269,7 @@ const init = paths => {
265269
}
266270

267271
console.log('Exporting Workspaces config to Webpack.');
268-
console.log(config);
272+
269273
return config;
270274
};
271275

0 commit comments

Comments
 (0)