Skip to content

Commit

Permalink
fix: afterAllFilesWritten (#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Feb 2, 2024
1 parent ef5a1ff commit 84a9ac7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/pages/reference/configuration/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ id: configuration-hooks
title: Hooks
---

### afterAllFilesWritten
### afterAllFilesWrite

Type: `String` or `String[]` or `Function`.

Expand All @@ -15,19 +15,19 @@ that are generated by orval.
module.exports = {
petstore: {
hooks: {
afterAllFilesWritten: 'prettier --write',
afterAllFilesWrite: 'prettier --write',
},
},
};
```

If you don't want to inject the generated files into the command, you can use `afterAllFilesWritten` with an object:
If you don't want to inject the generated files into the command, you can use `afterAllFilesWrite` with an object:

```js
module.exports = {
petstore: {
hooks: {
afterAllFilesWritten: {
afterAllFilesWrite: {
command: 'prettier --write .',
injectGeneratedDirsAndFiles: false,
},
Expand Down

0 comments on commit 84a9ac7

Please sign in to comment.