yeoman-generator version: 4.12.0
When the current directory name is like my-project, the appname is my project. This is not in my mind. The current directory is empty, has not bower.json or package.json.
You know, if use generator to get package.json, the name like "my project" is not valid.
If the current directory name is like my_project, I can get right appname.
Can we get the right directory name? or give a reason to help me understand what happen?
yeoman-generator version: 4.12.0 When the current directory name is like my-project, the appname is my project. This is not in my mind. The current directory is empty, has not bower.json or package.json. You know, if use generator to get package.json, the name like "my project" is not valid. If the current directory name is like my_project, I can get right appname. Can we get the right directory name? or give a reason to help me understand what happen?
ENV
Code of custom generator