nystudio107 / generator-craftplugin

generator-craftplugin is a Yeoman generator for Craft CMS plugins
MIT License
73 stars 30 forks source link

Project Root thrown off by .yo-rc.json #30

Closed brianjhanson closed 7 years ago

brianjhanson commented 7 years ago

When trying to run:

yo craftplugin --pluginComponents="twigextensions"

It tries to generate a new plugin because I have a .yo-rc.json file in a parent directory. This file causes yo to set the project root to that parent directory rather than running the generator in the current directory.

khalwat commented 7 years ago

hmmmm. I'm not sure how this would/should be addressed? Suggestions?

brianjhanson commented 7 years ago

I'm not really sure, I solved it by running rm ~/.yo-rc.json to delete the file, but that doesn't seem like a super long term fix.

It looks like Yeoman has an issue for the same problem, as does yo, but deleting the file was the only solution there as well.

Either way, likely not a widespread issue, and at least now this issue is here to help point people towards a fix.

khalwat commented 7 years ago

Fair 'nuff!