-
Notifications
You must be signed in to change notification settings - Fork 53
Have typescript as a peerDependency #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Personally, I feel that the recent trend of See gulp-tsc if you want an example: the |
sorry for late reply. https://docs.npmjs.com/files/package.json
and http://blog.npmjs.org/post/110924823920/npm-weekly-5 I don't use peerDependency in tsfmt. https://docs.npmjs.com/misc/semver Prerelease tags can't match to We need way to satisfy prerelease tag issue and @demurgos I think gulp-tsc has same issue about this repo.
|
dirty (and terrible) hack... |
@demurgos just read the search algorithm for I suppose the only point of contention (which might be where |
@vvakame @myitcv With I just experienced this problem with Finally, I would also argue that even when using Here is a discussion about plugins that might be relevant. (Even if in this case, this plugin cannot work without Ultimately, this is a great module and you seem really experienced so you will come up with a good solution, but I still wanted to express my reserve about |
This just reared its head again microsoft/TypeScript#6856 @vvakame - that terrible hack is indeed terrible!
Can we not adopt the same approach for |
@myitcv I decided to follow the tslint... 😉 please try |
@vvakame - thanks very much, working like a dream now! |
@vvakame - can we move TypeScript to be a
peerDependency
?We just got bitten the following situation:
v1.1.0
, one of our team hadtypescript-formatter
referencingv1.6.2
of TypeScript; I had it depending onv1.7.3
(not by design, simply a fluke)If TypeScript were a
peerDependency
then this situation wouldn't arise, because it would pick up the version we have in ourpackage.json
which is1.8.0-dev.20151201
... and it would mean we can pick up the latest formatting 'fixes' intypescript@next
We have also moved back to using
npm-shrinkwrap.json
given this is fixed in the latestnpm
which should help avoid these sorts of situationsThoughts?
The text was updated successfully, but these errors were encountered: