hubot-gitter2 icon indicating copy to clipboard operation
hubot-gitter2 copied to clipboard

require.main.require for hubot is not in packages.json

Open mose opened this issue 8 years ago • 1 comments

We could add hubot in devDependencies, but this require.main.require works when in production (stolen from hubot-slack plugin) and when hubot is not installed globally.

mose avatar Sep 04 '16 05:09 mose

Yeah AFAIR I did not want to add hubot as any level of dependency so that it could be using the version of the system. IDK what's best, adding as a dev-dep or doing this require.main... Maybe we should create another file hubot.coffee which will be just resolving that dependency, trying to get it from require.main.require and else falling back to the devDependency one with normal require...

huafu avatar Nov 22 '17 11:11 huafu