Created by: rmhartog
First attempt at fixing #3405 (closed), by resolving the path using resolve-from
, to search up the node_modules
hierarchy of the project.
Current status: creating a new project with create-react-app packages/app-a
inside a yarn workspaces project succeeds (see #3405 (closed)), but does not yet detect that it should use yarn. All react-scripts
files also need to be updated to respect correct paths.
To do: check for each of the following files how they handle paths and substitute an appropriate solution (probably with resolve-from
).
-
create-react-app/
-
createReactApp.js
-
-
react-scripts/
-
init.js
-
build.js
-
eject.js
-
start.js
-
test.js
-
config/
-
paths.js
-
-
-
detect use of yarn in a workspace
I'm aware that we'd rather not edit createReactApp.js
, but I'm afraid this fix cannot be made without touching it. Would love to hear more thoughts on this.