Mitosis should accept any valid path for the dest.
(Also, why is the dest an array?)
Actual Behaviour
Currently the output only accepts “forward” paths, i.e. it won’t write to “../../somewhere”.
Additional Information
I'm not sure how big an obstacle this is in real use cases, but it requires workarounds in the E2E.
This is exacerbated by the need for the current working directory to be where the input src is located, see #494. Once that problem is fixed it would it would be possible to run Mitosis from an arbitrary higher directory, making this bug less noticeable.
I am interested in helping provide a fix!
Yes
Which generators are impacted?
Reproduction case
dest: ['../anywhere']
Expected Behaviour
Mitosis should accept any valid path for the dest.
(Also, why is the dest an array?)
Actual Behaviour
Currently the output only accepts “forward” paths, i.e. it won’t write to “../../somewhere”.
Additional Information
I'm not sure how big an obstacle this is in real use cases, but it requires workarounds in the E2E.
This is exacerbated by the need for the current working directory to be where the input
src
is located, see #494. Once that problem is fixed it would it would be possible to run Mitosis from an arbitrary higher directory, making this bug less noticeable.