You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an existing issue that is already proposing this?
I have searched the existing issues
Is your feature request related to a problem? Please describe it
It seems when using swc, we cannot generate the *.d.ts files [1,2] needed by, e.g., MikroOrm's TsMorphMetadataProvider [3,4]. One of the workarounds to call tsc -p tsconfig.declaration.json, with
However, when using nest start, this will require manually splitting the start command into:
Setting "deleteOutDir": false in the compilerOptions of nest-cli.json
rm -rf ./dist
nest build
tsc -p tsconfig.declaration.json
nest start
which seems cumbersome.
Describe the solution you'd like
It would be convenient if we could do something like nest --generate-declarations start or nest build && tsc -p tsconfig.declaration.json && nest --skip-builder start (or nest --builder none start). We may add some checks before the this.runBuild line in start.action.ts to achieve this.