mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 16:16:20 +00:00
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:
parent
cbca97feb3
commit
6c3216cf51
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user