I've implemented a NestJS app in Javascript without the TS support. And I would like to deploy it. I'm wondering how one can achieve that. All the documentation points to how to do that using typescript. Using a nest build
command, mentioned here in this post. But there is no proper documentation for achieving this with Javascript. There is also an issue here without the proper answer.
Here are the current scripts in my project
"scripts": {
"format": "prettier --write \"**/*.js\"",
"start": "babel-node index.js",
"start:dev": "nodemon",
"test": "jest",
"test:cov": "jest --coverage",
"test:e2e": "jest --config ./test/jest-e2e.json"
},
I believe I should not be using babel in production env. I should be building the app files and use node dist/main
. But how can I build the app?