Repository navigation
Try to fix cosmiconfig in the built version of Prettier - #2930
Conversation
|
I can't reproduce the issue in this PR, it seems worked. Not sure how to write tests for it, can we just run tests for bundled version before releasing? Unrelated question: our CI's |
|
I think it's supposed to run the tests on Speculation: I think it is failing because |
|
When running the build scripts, it says this at the end: I've tried that, and everything passes. It would be nice to construct a test that would fail there. Btw, I also need to test this with eslint-plugin-prettier. Might be more rollup:ed files to tweak. |
|
I've tested with eslint-plugin-prettier now. I've force-pushed a fix to also do the module.parent thing in index.js. |
|
Turns out we don't have to write any new tests: #2932 |
azz
left a comment
There was a problem hiding this comment.
So sounds like we're good to merge this?
|
It can’t make things worse at least. |
Fixes #2924 (hopefully). Not sure if this is the correct fix, but it seems to work. Please help me test! We should also write integration tests that catch the error...