add support to install modules from non standard locations#28
add support to install modules from non standard locations#28amtoine wants to merge 4 commits intonushell:mainfrom
Conversation
|
expected failure in https://github.com/nushell/nupm/actions/runs/6487491436/job/17617914677?pr=28, isn't it nice? 😏 🙏 |
|
@kubouch or maybe each one of the |
|
The |
related to - #28 this will supersede #28 ## Description Adds support for `$.modules` field to package.nuon. Similar to `$.scripts`, this allows installing modules (both files and directories) from custom locations. > **Note** > for Nupm, a package can be a collection of modules and scripts, this PR comes closer to that goal Another change is that the default package module (`package-name/` dir) and script (`package-name.nu` file) are not required. You can have a package that has _only_ the `$.modules:` and `$.scripts:` fields in package.nuon.
|
superseded by #33 |
Description
src/:spam_module_src_rootmodule andinstall-module-with-src-roottestspam_module_repo_rootmodule andinstall-module-with-repo-roottest$.rootin thepackage.nuonfilethe general idea is that
$.rootis not defined,nupm installwill try to install the module files from the subdirectory inside the root whose called the same as the package, e.g.nu-git-managerwould install from./nu-git-manager/$.rootis defined,nupm installwill copy the files from$.rootand put that in the same place in the Nupm store