Closed dylang closed 10 years ago
I've already refactored this plugin entirely and this was already resolved in the refactor. thanks!
actually I'll leave this open until I push that up...
oh that's great!
closing per the comments I made on the previous issue (regarding Verb)
This
grunt
is fromvar grunt = require('grunt')
, not the grunt passed in. This means that its possible two instances of grunt are being used (for example different versions).I think it's a good coding policy to use the
grunt
being passed in so that you know any state set will propagate.Also I think this means
grunt
should be apeerDependency
in the package.json to make sure the versions match up. As it is currently coded, grunt must be adependency
ingrunt-readme
'spackage.json
, not adevDependency
as it is is currently.For lib files that need grunt, i tend to do something like this: