Node peoples... is there any way to specify a root directory for my npm package so that I don't need require("mypackage/lib/foo")?
@percyhanna I am looking for a way to do require("mypackage/foo") but store that file in mypackage/lib/foo.js
-
-
@wycats ttbomk that won't work. perhaps publish a package named "mypackage/foo", use `npm link`, then `npm link mypackage/foo` in mypackageThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats Not that I'm aware of, unless you create a ./foo.js "manifest" that just loads files from ./lib/. But is that worth the extra file?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.