react-email
react-email copied to clipboard
fix(watcher): Fix watcher for subfolders like `emails/components`
In the current version (1.7.2), if you were to change a file in (for example) emails/components the watcher would not copy that file to the correct location. This pr fixes this behaviour, see pictures below:
Before changing header.tsx:

After changing header.tsx (old flow):

After changing header.tsx (new flow):
