jam icon indicating copy to clipboard operation
jam copied to clipboard

packages with optional dependencies require multiple packages

Open jedahan opened this issue 13 years ago • 1 comments

hammer.js has an additional file jquery.hammer.js that is optional. For now, publishing 'hammer.js' and 'hammer-jquery' will have to be the workaround. This might be better handled in CommonJS first.

jedahan avatar Jun 21 '12 18:06 jedahan

Note: this might be addressed with an optionalDependencies property in package.json (which will display a message on installation similar to pacman's handling of optional deps) and virtual packages which would allow both hammer-standalone and hammer-jquery to satisfy the 'hammer' virtual package for dependants.

caolan avatar Jun 21 '12 19:06 caolan