From dde8b77452ee4291036af3ec9a88a1f0640d78a2 Mon Sep 17 00:00:00 2001 From: Tom Gobich Date: Sun, 9 Jun 2024 20:43:19 -0400 Subject: [PATCH] added note about the #dto import path --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index fa773e0..f0cb1a6 100644 --- a/README.md +++ b/README.md @@ -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