Skip to content
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

Merged
merged 3 commits into from
Sep 25, 2016
Merged

Forked react-scripts should retain the binary name #754

merged 3 commits into from
Sep 25, 2016

Conversation

shubheksha
Copy link
Contributor

Fixes #753

@ghost
Copy link

ghost commented Sep 25, 2016

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 cla@fb.com. Thanks!

@ghost ghost added the CLA Signed label Sep 25, 2016
@ghost
Copy link

ghost commented Sep 25, 2016

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'
Copy link
Contributor

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'
);
Copy link
Contributor

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?

@gaearon
Copy link
Contributor

gaearon commented Sep 25, 2016

This looks right to me. Let's wait for Travis and then merge. Thanks!

@gaearon gaearon merged commit 1b6f58c into facebook:master Sep 25, 2016
@gaearon
Copy link
Contributor

gaearon commented Sep 25, 2016

Thanks again! 👍

kitze added a commit to kitze/custom-react-scripts that referenced this pull request Sep 27, 2016
…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
feiqitian pushed a commit to feiqitian/create-react-app that referenced this pull request Oct 25, 2016
* 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
maltestenzel pushed a commit to maltestenzel/custom-react-scripts that referenced this pull request Mar 7, 2018
…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
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants