Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gannon McGibbon <gannon.mcgibbon@shopify.com>
  • Loading branch information
Alex Evanczuk and gmcgibbon committed Oct 28, 2022
1 parent 539950d commit b7882b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,13 @@ Violations exist within the package that makes a violating reference. This means

# Loading Extensions

You can optionally specify ruby files that you'd like to be loaded with `packwerk` by specifying a `require` directive in `packwerk.yml`:
You can optionally specify extension gems that you'd like to be loaded with `packwerk` by using the `require` directive in `packwerk.yml`:

```yml
require:
- ./path/to/file.rb
- my_gem
```

`packwerk` will directly call `require` with these paths.
You can prefix local files with a dot to define them relative to `packwerk.yml`, or you can use absolute paths.
You can also reference the name of a gem.
Packwerk will `require` these entries like any other ruby file.
While extension gems may be loaded through this directive, you may also load local extensions with paths relative to your `packwerk.yml`, or with absolute paths.

0 comments on commit b7882b8

Please sign in to comment.