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

Add ability to specify the app path for react-scripts #13490

Open
walidghallab opened this issue Jan 7, 2024 · 0 comments
Open

Add ability to specify the app path for react-scripts #13490

walidghallab opened this issue Jan 7, 2024 · 0 comments

Comments

@walidghallab
Copy link

walidghallab commented Jan 7, 2024

Is your proposal related to a problem?

I am unable to use react-scripts when the app path is different from where I am running the script.

Describe the solution you'd like

We can add environment variable (e.g. REACT_APP_PATH), where it is used as the app directory when specified and use the current directory otherwise (current behavior).

From the code I can see similar solution was applied for BUILD_PATH.

I can send a PR if this proposal gets approved.

Describe alternatives you've considered

I've considered adding it as a command line, however didn't do it bec:

  • Adding env variable is consistent with the current behavior (e.g. BUILD_PATH)

Additional context

Code for the existing BUILD_PATH env: link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant