Allow to generate type declaration files with tsc
when the builder is swc
or to skip building in nest start
#2610
Labels
tsc
when the builder is swc
or to skip building in nest start
#2610
Is there an existing issue that is already proposing this?
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'sTsMorphMetadataProvider
[3,4]. One of the workarounds to calltsc -p tsconfig.declaration.json
, withafter the building step.
However, when using
nest start
, this will require manually splitting thestart
command into:"deleteOutDir": false
in thecompilerOptions
ofnest-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
ornest build && tsc -p tsconfig.declaration.json && nest --skip-builder start
(ornest --builder none start
). We may add some checks before thethis.runBuild
line instart.action.ts
to achieve this.Teachability, documentation, adoption, migration strategy
No response
What is the motivation / use case for changing the behavior?
See the first section.
The text was updated successfully, but these errors were encountered: