-
-
Notifications
You must be signed in to change notification settings - Fork 75
Update: Open TS peerDependency, warn non-supported version (fixes #167) #193
Conversation
Thanks for the pull request, @JamesHenry! I took a look to make sure it's ready for merging and found some changes are needed:
Can you please update the pull request to address these? (More information can be found in our pull request guide.) |
I like this solution. It gives the user more information on what to expect. For example typescript 2.3 has some breaking changes again. This time with how JSX is handled, need to spend some more time looking into. When typescript upgrades we will have to release a new version and a warning will help user understand why the parser is failing. |
This feels like the best solution to me also |
Not sure that will work for non-final releases: http://blog.npmjs.org/post/115305091285/introducing-the-npm-semantic-version-calculator |
We currently use |
@JamesHenry |
The more I think about this I think it will be fine since devDepencies are not installed. It should work as expected. |
@soda0289 The reason why we need it as a peerDependency in the first place is that we I think it is fair to say |
That makes sense. I was thinking that typescript was bundled with this parser but that is not the case and only happens during development. |
Ok I am going to clean this up and request review |
8d16f31
to
5297ecc
Compare
5297ecc
to
f073c9a
Compare
LGTM |
@@ -52,9 +52,10 @@ | |||
}, | |||
"dependencies": { | |||
"lodash.unescape": "4.0.0", | |||
"object-assign": "^4.0.1" | |||
"object-assign": "^4.0.1", | |||
"semver": "^4.3.6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any particular reason this is not using 5?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't think of one. I looked at the commit log and seems they only dropped support for AMD modules and minifying the code in v5. Do you want to create a PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
Interesting message on running npm install
here, btw.
npm WARN The package semver is included as both a dev and production dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need it in devDependencies
anymore as it is used during runtime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be one way to address #167
Still not sure how I feel about it, but thought I would stick a working example on a branch and look for feedback.
@soda0289 @eslint/eslint-team