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 NPM_BUILD environment variable #424

Merged

Conversation

whenlit
Copy link

@whenlit whenlit commented Mar 22, 2024

I would like to be able to specify the npm script for the build step instead of build, the same way you can use NPM_RUN to specify a different run script instead of start. My use case is that I want to build and deploy part of a monorepo. As it is, I have to copy the whole assemble file to my .s2i directory and change it in there.

I agree with the suggestion in issue #308 that the most appropriate name for this variable would be NPM_BUILD. I have not found anything online that would indicate that it is already in use for something else.

@whenlit
Copy link
Author

whenlit commented Apr 5, 2024

Hi @phracek, I hope you don't mind me mentioning you like this, just making sure that someone notices this PR in here.

@zmiklank
Copy link
Contributor

zmiklank commented Apr 5, 2024

Hi, thank you for the pull request and for the patience. I will try to run the tests at first:
[test-all]

@phracek
Copy link
Member

phracek commented Apr 10, 2024

This pull request looks easy to review. What do you think @lholmquist @mhdawson?

Copy link
Member

@lholmquist lholmquist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. this is a small but effective addition

@zmiklank zmiklank merged commit ce1e482 into sclorg:master Apr 10, 2024
36 checks passed
@whenlit whenlit deleted the feat/add-npm-build-environment-variable branch April 10, 2024 22:14
@zmiklank zmiklank mentioned this pull request Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants