#How to configure different entry files to be packaged into different output directories in nestjs an

6 messages · Page 1 of 1 (latest)

hearty plank
#

In my same project, there are two different entry files. They are treated as a separate service, but they share a common module. However, I have no idea how to elegantly package and run the configuration

robust coyote
hearty plank
#

This is what I'm doing for now, but --watch doesn't work. I hope to start it through nest start

#

However, nest start executes main.js by default

#

I thought nest-cli should support configuring multiple entry points, but this seems rather complicated to implement

robust coyote
#

strange that watch doesn't work. I've swithced from ts-node to tsx (https://tsx.is/) and I'm using it with watch. I don't even use nest cli anymore, it is not needed.

tsx
tsx

tsx (TypeScript Execute) - The easiest way to run TypeScript in Node.js