dojo / cli

:rocket: Dojo - command line tooling.
http://dojo.io
Other
25 stars 34 forks source link

Bug: RenderFiles creates a directory with the name of the file that needs to be rendered #263

Closed agubler closed 6 years ago

agubler commented 6 years ago

Bug

Since https://github.com/dojo/cli/pull/256, renderFiles has used ensureDir so that consumers do not need to create the directory structure before calling the helper - However it calls ensureDir on the complete file path, which creates a directory with the name of the file and then rendering the actual file fails.

Package Version: 4.0.0-alpha.1

Error

(node:9769) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
(rejection id: 2): Error: EISDIR: illegal operation on a directory, open 'src/App.m.css'