Skip to content

Commit e91218f

Browse files
committed
Fix ejecting for a scoped react-scripts fork
We shouldn't hardcode react-scripts because fork name might differ. We also shouldn't rely on it being an immediate child because scoped packages are a level deeper.
1 parent 2f7e3a2 commit e91218f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/config/paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function resolveOwn(relativePath) {
9797
// config before eject: we're in ./node_modules/react-scripts/config/
9898
module.exports = {
9999
appPath: resolveApp('.'),
100-
ownPath: resolveApp('node_modules/react-scripts'),
100+
ownPath: resolveOwn('.'),
101101
appBuild: resolveApp('build'),
102102
appPublic: resolveApp('public'),
103103
appHtml: resolveApp('public/index.html'),

0 commit comments

Comments
 (0)