We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 075e729 commit fe108beCopy full SHA for fe108be
packages/react-scripts/scripts/eject.js
@@ -149,13 +149,17 @@ prompt(
149
);
150
console.log();
151
152
+ // remove react-scripts and react-scripts binaries from app node_modules
153
+ Object.keys(ownPackage.bin).forEach(function(binKey) {
154
+ fs.removeSync(path.join(appPath, 'node_modules', '.bin', binKey));
155
+ });
156
+ fs.removeSync(ownPath);
157
+
158
if (fs.existsSync(paths.yarnLockFile)) {
159
console.log(cyan('Running yarn...'));
- fs.removeSync(ownPath);
160
spawnSync('yarnpkg', [], {stdio: 'inherit'});
161
} else {
162
console.log(cyan('Running npm install...'));
163
spawnSync('npm', ['install'], {stdio: 'inherit'});
164
}
165
console.log(green('Ejected successfully!'));
0 commit comments