Currently the only extension I'd like to use in my project is the DtoPipe/Dto. However, if I just add a normal import like:
import { DtoPipe } from 'nestjs-extensions';
Even though I'm only importing DtoPipe (and similarly Dto in the entity), node complains that I need to install ALL of this libs dependencies, including things like mandrill, sequelize, etc., things I have no need for. If I change the import to:
import { DtoPipe } from 'nestjs-extensions/dist/dto';
Then everything works as expected, without having to install anything additional. Is this the recommended way to bring in just one "module" or extension from this project? Is there a better way?
Currently the only extension I'd like to use in my project is the DtoPipe/Dto. However, if I just add a normal import like:
Even though I'm only importing DtoPipe (and similarly Dto in the entity), node complains that I need to install ALL of this libs dependencies, including things like mandrill, sequelize, etc., things I have no need for. If I change the import to:
Then everything works as expected, without having to install anything additional. Is this the recommended way to bring in just one "module" or extension from this project? Is there a better way?