build
build copied to clipboard
fix: Check for template file and output dir
- Current logic checks if the template is a dir, should be checking output. It will also throw an exception since
lstatSyncdoes not handle missing files - Add check to make sure template exists, give an error message instead of ENOENT
- Add check for output dir so exception is not thrown