FusionAuth / fusionauth-node-cli

https://fusionauth.io
Other
1 stars 6 forks source link

Windows Path separators #12

Closed zaalbarxx closed 3 months ago

zaalbarxx commented 5 months ago
zaalbarxx commented 5 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 /.