stephenh / ts-poet

A code generator DSL for typescript
Apache License 2.0
103 stars 13 forks source link

fix: maybeRelativePath: use path.relative function #31

Closed paralin closed 2 years ago

paralin commented 2 years ago

Fixes edge cases of the logic in maybeRelativePath by using path.normalize and path.relative to determine the relative paths between modules.

paralin commented 2 years ago

@stephenh I'm not exactly sure if I can, see #30 - I'm modifying things somewhat in my case so that the from path is "./examples/echo" and the destination path is "./vendor/github.com/aperturerobotics/target/thing"'

.. that said I think the existing test probably covers it?

stephenh commented 2 years ago

Released as v4.13.0, thanks @paralin !