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

feat: add support for mjs files when finding apps #31

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

mhdawson
Copy link
Member

@mhdawson mhdawson commented Aug 8, 2024

Refs: paketo-buildpacks/node-start#225

Summary

Add support for .mjs files when looking for Node.js applications. Node.js added support for mjs a while ago.

Use Cases

An application where the main script file is an .mjs file

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 August 8, 2024 19:43
@mhdawson mhdawson requested review from brayanhenao and paketo-bot-reviewer and removed request for a team August 8, 2024 19:43
@mhdawson
Copy link
Member Author

mhdawson commented Aug 8, 2024

@pacostas if you can take a look when you get back.

@mhdawson mhdawson added the semver:minor A change requiring a minor version bump label Aug 8, 2024
@pacostas
Copy link

pacostas commented Aug 9, 2024

@mhdawson Looks good. Should we also add support for .cjs files?

@mhdawson
Copy link
Member Author

mhdawson commented Aug 9, 2024

@pacostas adding .cjs probably makes sense as well. I'm away on holiday next week so maybe we can land this and I'll add another PR to add that once I'm back.

Copy link

@pacostas pacostas left a comment

Choose a reason for hiding this comment

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

@mhdawson I agree, LGTM

@pacostas pacostas merged commit daff2f2 into paketo-buildpacks:main Aug 9, 2024
5 of 6 checks passed
mhdawson added a commit to mhdawson/libnodejs that referenced this pull request Aug 20, 2024
@mhdawson mhdawson mentioned this pull request Aug 20, 2024
5 tasks
pacostas pushed a commit that referenced this pull request Aug 22, 2024
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.

2 participants