Update hooks structure requirements

The current hooks structure has package.json within the lib folder. This causes strapi to fail as it is looking for the package.json file in the hook root folder and not within lib.

This change moves the secondary files back into the hook root leaving only index.js in the lib folder.
This commit is contained in:
ekamgit 2018-06-08 23:05:48 +10:00 committed by GitHub
parent cbca97feb3
commit 6c3216cf51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,8 +64,9 @@ Every folder that follows this name pattern `strapi-*` in your `./node_modules`
A hook needs to follow the structure below:
```
/lib
- index.js
/hook
└─── lib
- index.js
- LICENSE.md
- package.json
- README.md