nest-cli icon indicating copy to clipboard operation
nest-cli copied to clipboard

New project places typescript in dependencies not devDependencies?

Open dls314 opened this issue 8 years ago • 4 comments

I noticed that nest-cli new project places typescript in dependencies not devDependencies. Is this a subtle requirement or could typescript be moved to devDependencies in (most) cases?

dls314 avatar Jun 27 '18 17:06 dls314

Hey @dls314 ! Thanks for your question.

Nest CLI create new projects based on nest-typescript-starter repository. If you think the dependencies (dev and prod) could be optimised don't hesitate to send your feedbacks here or make a PR with your changes and it will be integrated.

The objectif is continue to use the same npm / yarn commands with your expected changes ;-)

thomrick avatar Jun 27 '18 17:06 thomrick

Thanks, I'll check that repo.

dls314 avatar Jun 27 '18 17:06 dls314

This is slightly OT, but how/how often does nest-cli pick up a new version of nest-typescript-starter? I see some issues fixed in master over there, but it looks like nest-cli is using update/version-5 (based on content, I don't know how it's being done)

dls314 avatar Jun 27 '18 17:06 dls314

Yeah Nest-CLI new generate a project based on nest-typescript-starter files but it is not cloning that branch repository. Nest-CLI use the @nestjs/schematics module to generate project and elements. If you want to apply your modifications you must go to that project and PR. (don't forget to submit an issue first to attach PR and track the project evolution) After that we have to update @nestjs/schematics dependency in Nest-CLI ;-)

thomrick avatar Jun 28 '18 16:06 thomrick