-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forked react-scripts should retain the binary name #754
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
new RegExp(ownPackageName + ' (\\w+)', 'g'), | ||
'node scripts/$1.js' | ||
); | ||
new RegExp(/react-scripts (\w+)/g, 'node scripts/$1.js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think new RegExp(
is unnecessary here since you already use the implicit regex syntax by wrapping it with /
s. The second argument ('node scripts/$1.js
) should be the argument to replace
, not to RegExp
constructor. Let me know if I’m missing something!
.replace( | ||
new RegExp(ownPackageName + ' (\\w+)', 'g'), | ||
'node scripts/$1.js' | ||
.replace(/react-scripts (\w+)/g, 'node scripts/$1.js' | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style nit: since the line is shorter now, let's bring this closing paren and the semicolon to the end of the previous line?
This looks right to me. Let's wait for Travis and then merge. Thanks! |
Thanks again! 👍 |
…react-app # By Ville Immonen (2) and others # Via Dan Abramov * 'master' of https://github.com/facebookincubator/create-react-app: added link to better visualizing tool (facebook#764) Fix the right and bottom padding of the error overlay (facebook#758) Remove the `.` at the end of the init message (facebook#760) Bump recursive-readdir (facebook#756) Forked react-scripts should retain the binary name (facebook#754) Mention the npm bug in migration instructions
* Forked react-scripts should retain the binary name * Forked react-scripts should retain the binary name -- fixed issue with regex * Forked react-scripts should retain the binary name -- fixed style nit
…react-app # By Ville Immonen (2) and others # Via Dan Abramov * 'master' of https://github.com/facebookincubator/create-react-app: added link to better visualizing tool (facebook#764) Fix the right and bottom padding of the error overlay (facebook#758) Remove the `.` at the end of the init message (facebook#760) Bump recursive-readdir (facebook#756) Forked react-scripts should retain the binary name (facebook#754) Mention the npm bug in migration instructions
Fixes #753