Skip to content

Commit 3ba6dfe

Browse files
committed
Fix eject bug
1 parent 0f9b5df commit 3ba6dfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-scripts/scripts/eject.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ prompt(
8787
// Remove dead code from .applescript files on eject
8888
.replace(/-- @remove-on-eject-begin([\s\S]*?)-- @remove-on-eject-end/mg, '')
8989
.trim() + '\n';
90-
console.log(' Adding ' + cyan(file) + ' to the project');
91-
fs.writeFileSync(path.join(appPath, file), content);
90+
console.log(' Adding ' + cyan(file.replace(ownPath, '')) + ' to the project');
91+
fs.writeFileSync(file.replace(ownPath, appPath), content);
9292
});
9393
console.log();
9494

0 commit comments

Comments
 (0)