samchon / nestia

NestJS Helper Libraries + TypeScript OpenAPI generator
https://nestia.io/
MIT License
1.85k stars 95 forks source link

Support output path maps/alias #136

Closed SkyaTura closed 1 year ago

SkyaTura commented 2 years ago

Path alias is already a useful feature when running code analysis, however, the output is always path relative to the found module.

This may not be always desirable, like, for instance, when working with modular projects and/or monorepos, since the output will be outside the scope of the main project.

I'm already trying some solutions for this one, but I need further testing to make sure it doesn't break anything.

Probably there will be more feature requests related to modular projects, but I'm hoping this one will be enough.

samchon commented 2 years ago

When defining nestia.config.ts file, I'll let developer to assign module instance.

Then this problem would be solved.

export interface IConfiguration {
    module?: object;
}