Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ hooks:

## Using JavaScript files

You can specify a JavaScript file that contains your hook code. The file must export a function.
You can specify a JavaScript file that contains your hook code. The file must export a function. If you are defining a hook in a separate config file (e.g. `ext.config.yaml`), that later is included in the root `app.config.yaml` file (via the `$include` directive), the hook path must be relative to the root.

**app.config.yaml**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ extensions:
$include: ./src/dx-excshell-1/ext.config.yaml
```

Configuration paths defined in `./src/dx-excshell-1/ext.config.yaml` must be relative to that file.
Configuration paths defined in other files (such as `./src/dx-excshell-1/ext.config.yaml`) must be relative to that file. The exception is `hooks` definitions that point to JavaScript files, which are always resolved relative to the root `app.config.yaml` file.

### Public distribution configuration

Expand Down