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")?
-
-
-
@isntitvacant can you explain what that has to do with what I said?@izs@Raynos2 -
New conversation -
-
-
-
-
@izs@wycats@deanero I actually think I can just get@defunctzombie and@substack to make it something work in browserify -
@Raynos2@wycats@deanero@defunctzombie@substack I think browserify already supports an alternate package.main -
@izs@wycats@deanero@defunctzombie@substack I don't think it supports entire folders just a alternative index.js -
@Raynos2 pretty sure it supports replacement of any arbitrary files, see https://gist.github.com/shtylman/4339901 …@defunctzombie@substack -
@domenic@defunctzombie@substack that's for the module author replacement. Not for module consumer replacement - 1 more reply
New conversation -
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.