Closed dshimkoski closed 12 years ago
Directory copying is done if the package.json in the "module" directory has a "main" and that main module has local AMD dependency references, or if the package.json sets volo.type to be "directory".
If the project that receives the "add"'d dependency has "amd": {}
in its package.json, then an adapter module "module.js" will be written out that points to the "main" module inside the "module" directory.
This approach means that there is no need for an additional requirejs config for a package.
Since there is a way to get this behavior, going to close this as already supported.
Neato! I wasn't aware of the amd property trick. Will read the docs with my eyes plugged in next time. Thanks!
Assuming we have a module named X with the following contents:
And we run this command:
The install directory will then contain:
This way CSS, etc., can be modularized inside of directory
x
and we still get to use short module names without having to adjust require's package config.