File tree 1 file changed +1
-10
lines changed
packages/react-scripts/scripts
1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ const { defaultBrowsers } = require('react-dev-utils/browsersHelper');
23
23
const os = require ( 'os' ) ;
24
24
const resolveFrom = require ( 'resolve-from' ) ;
25
25
const paths = require ( '../config/paths' ) ;
26
- const { findMonorepo } = require ( 'react-dev-utils/workspaceUtils' ) ;
27
26
28
27
function isInGitRepository ( ) {
29
28
try {
@@ -178,18 +177,10 @@ module.exports = function(
178
177
fs . unlinkSync ( templateDependenciesPath ) ;
179
178
}
180
179
181
- // yarn ws bug not creating app/node_modules/.bin link to hoisted react-scripts
182
- // -- workaround: install react-scripts again to create link
183
- // bug in yarn 1.3.2, fixed in nightly 1.4.1-20180211.2236
184
- const rerunYarn = useYarn && findMonorepo ( appPath ) . isAppIncluded ;
185
- if ( rerunYarn ) {
186
- console . log ( 'Detected app in yarn workspace, running install again' ) ;
187
- }
188
-
189
180
// Install react and react-dom for backward compatibility with old CRA cli
190
181
// which doesn't install react and react-dom along with react-scripts
191
182
// or template is presetend (via --internal-testing-template)
192
- if ( ! isReactInstalled ( appPackage ) || template || rerunYarn ) {
183
+ if ( ! isReactInstalled ( appPackage ) || template ) {
193
184
console . log ( `Installing react and react-dom using ${ command } ...` ) ;
194
185
console . log ( ) ;
195
186
You can’t perform that action at this time.
0 commit comments