Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
i'm writing some custom plugins but they have dependencies on packages i don't want to install globally ( i don't think they should be ). unfortunately, this means node can't find them ( them being the deps i'm requiring ). i'd like to just put a
package.json
inside the folder i installed haraka's configs / plugins to andnpm install
them to anode_modules
besideplugins
andconfig
.this seems to work and keeps things clean. it was the best i could come up with according to the way modules are resolved:
http://nodejs.org/docs/v0.3.1/api/modules.html#module_Resolving
of course, i could just add this line at the top of each of my plugins, but i thought it might become something canonical. other people will hopefully be writing custom plugins as well one day. what do you think?