Closed zaalbarxx closed 3 months ago
Currently when using this CLI on windows and running theme:watch
using temp directory tmp
the path
returned from chokidar
is tmp\helpers.ftl
(example). Windows path separator is \
. So breaking the path by /
causes the PATCH request to theme to incorrectly set themes[tmp\helpers.ftl]
key instead of themes[helpers.ftl]
. Same issue would propably appear for e-mails so I also added resolving path separator using path.sep
instead of hardcoded /
.
path.sep
for separator resolving andpath.basename
for resolving filename of the file in theme watch