Move @types/jsonwebtoken to devDependencies#324
Conversation
|
Any update on this one? |
|
I see I only did 2 of 4 tasks, but I don't know what documentation or tests would need to change, which is why I left them undone. |
|
@jfromaniello I noticed your comment in #313 that somehow this is needed. What bad thing happens when the types are |
|
@bickelj The problem is that the types of jsonwebtoken are re-exported or reused in exports of this lbirary: So basically if you remove One way to solve this will be to copy the used types from jsonwebtoken (and all related types) into this library.... but then updating will be harder. If jsonwebtoken exported its types that will make it easier and one less dependency. |
By submitting a PR to this repository, you agree to the terms within the Auth0 Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
This prevents dependencies (the usual non-dev dependencies) in downstream TypeScript projects from getting polluted with compile-time-only
@types. It should fix #323 without impacting anything else. The build succeeds and passes.References
#323
Testing
express-jwtin production dependencies and@types/jsonwebtokenin devDependencies.npm install. Note that there are now@typesin prod dependencies by examiningpackage-lock.json.@typesarrive in prod.Checklist