Open Hotell opened 6 years ago
Current behaviour:
Project structure:
- types/ |- one/ |- two/
When we wanna add new definitions:
npx dts-gen --dt --template module --name webpack-config-utils
we'll get following error, because webpack-config-utils folder doesn't exists:
webpack-config-utils
Unexpected crash! Please log a bug with the commandline you specified. ENOENT: no such file or directory, mkdir 'types/webpack-config-utils'
Expected:
It would be more user friendly to create the folder when it doesn't exist, ( mkdir -p like behaviour )
whops ! looks like I was executing the command within types folder, my mistake!
types
Still it would be nice to provide some more specific error message :)
duplicate of #85
Current behaviour:
Project structure:
When we wanna add new definitions:
we'll get following error, because
webpack-config-utils
folder doesn't exists:Expected:
It would be more user friendly to create the folder when it doesn't exist, ( mkdir -p like behaviour )