fix: Resolve input sourceDir to absolute path#3024
Conversation
Rob--W
left a comment
There was a problem hiding this comment.
With the path normalization moved into cmd/run.js, the normalization at the arg parser level can be dropped:
Line 433 in 3063a77
Could you also add a unit test to https://github.com/mozilla/web-ext/blob/eae8d7374238254c90e8e10d0395ca24923c8c13/tests/unit/test-cmd/test.run.js ? Input a relative path and verify that sourceDir is an absolute path.
|
Thanks for the review and comments, I've pushed the suggested changes. One build step is failing currently related to I referred to some docs and downgrading to version 2.8.8 fixed the issue, but build still fails after the latest push. I'm not sure if this is due to an older version of prettier doing some additional formatting changes which were not required. Please could you suggest on this. |
Gah, that's my fault probably. We don't seem to have CI checks for prettier/pretty-quick and looks like there is some kind of incompatibilities. |
|
Ha. Weird, it doesn't fail for me locally. Could you please rebase your PR on top of latest |
5f01fe7 to
13af82f
Compare
|
Yes, pulling the latest from |
Fixes #2993.
Add a patch that turns the
run.jssourceDir into an absolute path.