Skip to content

Commit b7ea50f

Browse files
akshbhuAkshay Upadhyay
andauthored
feat: adding cli options to commands hooks (#5091)
Co-authored-by: Akshay Upadhyay <[email protected]>
1 parent e1fa661 commit b7ea50f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/cli/project/command-hooks.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,16 @@ An example showcasing python runtime support and different runtime settings base
189189
},
190190
"js": {
191191
"runtime": "~/.nvm/versions/node/v14.17.1/bin/node",
192-
"runtime_windows": "node"
192+
"runtime_windows": "node",
193+
"runtime_options": ["--require", "./payload.js"],
193194
}
194195
}
195196
}
196197
```
197198
- The keys in the `extensions` ( js, py ) are values that will be used as `extension` in the [naming convention](#how-to-name-command-hook-scripts) used when naming the hook scripts.
198199
- `runtime` (required) - symlink (`node`, `python`, `bash`) or path to executable (`~/.nvm/versions/node/v14.17.1/bin/node`).
199200
- `runtime_windows` (optional) - windows specific symlink or path to executable.
201+
- `runtime_options` (optional) - Array of cli options to be passed to command hooks specific to runtime.
200202

201203
### Managing third-party dependencies
202204

0 commit comments

Comments
 (0)