diff options
author | Unknown | 2018-04-14 16:54:58 +0100 |
---|---|---|
committer | Unknown | 2018-04-14 16:54:58 +0100 |
commit | 6b7328cece2b8aa832add58a2057156fd250b195 (patch) | |
tree | 66631a8d732675f1200881ab0622f6acc1b26006 /README.md | |
parent | 51bdf1a7a15ec9c5677896a8ef923aeb86050d23 (diff) |
add dependencies
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -47,15 +47,20 @@ example-repo Firstly, you want to make a new folder called the name of the package. Then, you want to make a file called package.json in the folder. In it, there should be 4 keys. -- `name`: **Must be the same as the folder name and command name!** +- `name`: **Must be the same as the folder name and command name!** (unless you've provided a uninstaller) - `inject`: It should be the name of the injection script. - `uninstall`: Optional, It should be the name of the uninstaller script, if it doesn't exist pkg93 will simply delete the command for you. +- `dependencies`: Optional, Packages this package depends on. These will be automatically installed. Here's a example: ```json { "name": "examplepkg", "inject": "installer.js", - "uninstall": "optionaluninstaller.js" + "uninstall": "optionaluninstaller.js", + "dependencies": [ + "anoptionaldependency", + "anotherone" + ] } ``` And the directory structure: |