Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Add 'typescript' to peer dependencies #386

Closed

Conversation

rogierschouten
Copy link
Contributor

Most files import "typescript" but typescript isn't depended on in package.json. You usually don't notice because typescript is installed by other modules (e.g. tslint), but it isn't proper.

Like tslint, I put typescript in the peerDependencies and I used the version range that tslint 5.1 also has in its peerDepdenencies for typescript.

@HamletDRC
Copy link
Member

@rogierschouten we don't actually test the project on all those typescript versions and point releases are often not backwards compatible at the AST level. But it is no different than not declaring a dependency, I suppose.

Can we just declare anything below 3.0 as the dependency? It is simpler in the dependency declaration and is more future safe. Do you see an issue with that?

@rogierschouten
Copy link
Contributor Author

@HamletDRC that's fine I think, although this may lose some -dev versions I guess. I've changed it both for TypeScript and TSLint.

@microsoft microsoft deleted a comment from msftclas Sep 26, 2017
@HamletDRC HamletDRC added this to the 5.0.2 milestone Dec 18, 2017
@HamletDRC HamletDRC closed this in 668fdfa Dec 18, 2017
@HamletDRC HamletDRC self-assigned this Dec 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants