Spoutnik97 / nestjs-monorepo-poc

1 stars 0 forks source link

was this issue resolved? https://github.com/nestjs/nest/issues/12105 #1

Open govindchowdhari opened 3 weeks ago

govindchowdhari commented 3 weeks ago

I am trying to have a similar setup but found no resolution. what was the resolution from nestjs?

Spoutnik97 commented 3 weeks ago

NestJs does not read ts fiel directly (like vite for instance). The bundler and typescript transpiler are not setup the same way.

For NestJs, you need to transpile your package first (tsc). Then you can import your package.

With pnpm packages, you can :

  1. install a local package https://pnpm.io/fr/workspaces
  2. import your package like a classic library