-
Notifications
You must be signed in to change notification settings - Fork 2
Upgrade postcss-values-parser to version 5 #107
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
Conversation
| "module": "commonjs", | ||
| "target": "es2018" | ||
| "target": "es2018", | ||
| "paths": { |
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.
OOI, why this change?
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 is necessary to make the override of types that exist in postcss-values-parser work. Once upstream is fixed, this can go away.
Ah sorry, missed this when reading first. Link the PR here when you opened it! |
|
There's 3 relevant PRs to this:
|
sorry for beings so slow - all of these have been merged, can this PR now simplified @realityking ? |
|
While they’ve all been merged, shellscape/postcss-values-parser hasn’t yet made a release with the changes. |
|
I've nudged on these pull requests :) |
|
released in |
|
❤️ I’ll send a clean-up PR once the upstream is updated |
Fixes #101
Version 5 is now using PostCSS 8 so there's no more necessary duplication holding back the upgrade.
This got more complex than expected, mostly because I was trying to use the upstream types. Unfortunately there are several errors in those types. I ended up copying (& fixing) the relevant parts into the definition file. When I get around to it, I'll submit a PR to the upstream to fix the types and the extra definition file can be eliminated.
As an alternative, I could simplify the definition file similar to the previous one and remove the type narrowing code. That would preclude using the upstream types in the future.