Skip to content

Commit

Permalink
added note about the #dto import path
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgobich committed Jun 10, 2024
1 parent e39965f commit dde8b77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ npm install @adocasts.com/dto
node ace configure @adocasts.com/dto
```

##### Define DTO Import Path
The generated DTOs will use `#dtos/*` for relationship imports within the DTOs.
As such, we recommend defining this import path within your `package.json`
```json
"imports": {
"#dtos/*": "./app/dtos/*.js"
}
```
## Generate DTOs Command
Want to generate DTOs for all your models in one fell swoop? This is the command for you!
```shell
Expand Down

0 comments on commit dde8b77

Please sign in to comment.