class-validator icon indicating copy to clipboard operation
class-validator copied to clipboard

@types/validator is a production dependency

Open Llois41 opened this issue 10 months ago • 1 comments

Description

@types/validator is a production dependency, but it should be a devDependency instead

I submitted a PR. Maybe a maintainer could have a look :)

Llois41 avatar Feb 21 '25 13:02 Llois41

I'm thinking there must be a reason why it's listed as a dependency. Without looking into it, I think it's possible that some of the types from there are used in the exported types from this library, meaning that the types are a part of the product, not just something we use during development. This would be different in a non-library project, where typescript types are always just used during development (they don't exist in an actually running javascript program, of course)

braaar avatar Mar 04 '25 08:03 braaar