Hi there everyone I m n…

less than 1 minute read

Hi there everyone, I’m new to using nx and I’ve pretty much been automating the deployment process for it into Azure using Azure DevOps.

I ran into an interesting problem with our nestjs project, if anyone here has some suggestions or guidance I’d be forever grateful…

In the ./dist/apps/{app_name}/ directory I end up with a main.js and it’s source map. However, if I throw that output directly into a nodejs docker container and use node main.js to run the nest application it does not seem to find dependencies specified in the package.json file. (like tslib, dotenv, etc..)

Any one have ideas around how all of those could be bundled, packaged and shipped with this main.js so that I don’t need to do an npm install in my docker container?

Updated: