I cloned this repo and it looks like when I try to use nest-cli commands such as nest build or nest start I get this error
Error Could not find TypeScript configuration file "tsconfig.build.json". Please, ensure that you are running this command in the appropriate directory (inside Nest workspace).
This, I assume is because the default language when you nest start is TypeScript. Using npm start is fine, but I'm not too sure about using babel-node in a production environment since the babel-node docs explicitly say it's not meant for production.
Right now my work around is to transpile manually using babel-cli using something that looks like this npx babel src/ --out-dir dist/ and then I just node dist/main.js on the prod server.
My question is, am I missing something entirely about nest-cli usage? Or am I going about this in an acceptable way since the build should just be a transpilation anyways?
Hi there,
I cloned this repo and it looks like when I try to use nest-cli commands such as
nest build
ornest start
I get this errorThis, I assume is because the default language when you
nest start
is TypeScript. Usingnpm start
is fine, but I'm not too sure about usingbabel-node
in a production environment since the babel-node docs explicitly say it's not meant for production.Right now my work around is to transpile manually using babel-cli using something that looks like this
npx babel src/ --out-dir dist/
and then I justnode dist/main.js
on the prod server.My question is, am I missing something entirely about nest-cli usage? Or am I going about this in an acceptable way since the build should just be a transpilation anyways?
Thanks in advance