File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1111const path = require ( 'path' ) ;
1212const fs = require ( 'fs' ) ;
1313const url = require ( 'url' ) ;
14+ const findUp = require ( 'find-up' ) ;
1415
1516// Make sure any symlinks in the project folder are resolved:
1617// https://github.com/facebook/create-react-app/issues/637
@@ -122,7 +123,9 @@ module.exports = {
122123} ;
123124
124125const ownPackageJson = require ( '../package.json' ) ;
125- const reactScriptsPath = resolveApp ( `node_modules/${ ownPackageJson . name } ` ) ;
126+ const reactScriptsPath = findUp . sync ( `node_modules/${ ownPackageJson . name } ` , {
127+ cwd : resolveApp ( '.' ) ,
128+ } ) ;
126129const reactScriptsLinked =
127130 fs . existsSync ( reactScriptsPath ) &&
128131 fs . lstatSync ( reactScriptsPath ) . isSymbolicLink ( ) ;
You can’t perform that action at this time.
0 commit comments