-
Notifications
You must be signed in to change notification settings - Fork 94
Allow plugins to be loaded from /code/node_modules #12
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
Conversation
Doesn't this only fix this specific plugin? Don't we need to support the user having their own plugins in |
@pbrisbin ready for another look |
@@ -10,4 +10,6 @@ USER app | |||
|
|||
COPY . /usr/src/app | |||
|
|||
ENV NODE_PATH /code/node_modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be something like /code/node_modules:/usr/src/app/node_modules
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and even :/whatever/the/system/node_modules
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope - by default it is nothing and is only used when the module can't be found elsewhere:
If the NODE_PATH environment variable is set to a colon-delimited list of absolute paths, then node will search those paths for modules if they are not found elsewhere.
- https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
LGTM |
Allow plugins to be loaded from /code/node_modules
/cc @codeclimate/review
This fixes the recurring bugsnag as well as #10