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

Npm start script override #9

Merged

Conversation

mhdawson
Copy link
Member

@mhdawson mhdawson commented May 2, 2023

Summary

Adds support for BP_NPM_START_SCRIPT as requested in paketo-buildpacks/npm-start#292.

Use Cases

See paketo-buildpacks/npm-start#292

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@mhdawson mhdawson requested a review from a team as a code owner May 2, 2023 21:00
@mhdawson mhdawson requested review from ryanmoran and thitch97 and removed request for a team May 2, 2023 21:00
@mhdawson mhdawson force-pushed the npm-start-script-override branch from c22abd0 to 4c5dddf Compare May 2, 2023 21:03
@mhdawson
Copy link
Member Author

mhdawson commented May 2, 2023

We could hide AllScripts versus exposing it but I could not come up with a good reason to do that since we are parsing/decoding it already.

@mhdawson
Copy link
Member Author

@thitch97 any chance you could take a look?

Copy link

@TisVictress TisVictress left a comment

Choose a reason for hiding this comment

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

Looks fine but I'm worried about lingering files. Please remove files that were setup for tests.

@mhdawson
Copy link
Member Author

@TisVictress will update to remove written files in next few days.

@mhdawson
Copy link
Member Author

mhdawson commented Jun 1, 2023

@TisVictress pushed commit to do clean of workingDir after each test. Since all files are written in workingDir that should ensure all files are cleaned up.

@mhdawson
Copy link
Member Author

@TisVictress ping

@thitch97 thitch97 added the semver:minor A change requiring a minor version bump label Jun 27, 2023
@TisVictress
Copy link

@mhdawson I'm sorry to respond so late. I merged the other two PRs. Could you resolve the above conflicts?

@mhdawson mhdawson force-pushed the npm-start-script-override branch from 7ef4b91 to 3d5698b Compare June 30, 2023 18:46
@mhdawson
Copy link
Member Author

@TisVictress conflicts resolved and PR updated. Thanks for your help.

@TisVictress TisVictress merged commit 19bc3df into paketo-buildpacks:main Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:minor A change requiring a minor version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants