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

fix: Add npm version and fix app setup #215

Merged
merged 3 commits into from
Jan 16, 2025
Merged

fix: Add npm version and fix app setup #215

merged 3 commits into from
Jan 16, 2025

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Jan 15, 2025

This pull request includes updates to the package.json file and significant refactoring of the src/app.js file to streamline the code and improve maintainability. The most important changes include adding a new engine requirement, removing unused imports and environment variable checks, and refactoring the plugin loading mechanism.

For some reason, Dokku was downgrading npm to v5.x when it saw package-lock.json, so hardcoding that in package.json is necessary. The rest is just cleanup using the new Probot APIs.

Updates to dependencies:

  • package.json: Added a new engine requirement for npm version 10.x.

Refactoring:

  • src/app.js: Removed unused imports and unnecessary environment variable checks.
  • src/app.js: Refactored the plugin loading mechanism to use a new appFn function that assigns plugins to the Probot instance.

mdjermanovic
mdjermanovic previously approved these changes Jan 16, 2025
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

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

LGTM, though I think we tried before to specify npm in package.json and it didn't work (4a5cccd) but maybe it will work this time.

@nzakas nzakas merged commit a9a3474 into main Jan 16, 2025
3 checks passed
@nzakas nzakas deleted the deploy-fix branch January 16, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants