Closed yamadapc closed 9 years ago
Good catch, could you please fix this with less changes to the code? i.e. a minor change would suffice like:
Object.keys(pack.dependencies || {})
.concat(Object.keys(pack.devDependencies || {}))
...
Thanks.
Done
:) Sorry about that; just thought that maybe calling Object.keys
unnecessarily might not be a good practice.
Do you want me to add nicer handling of the case? It'll result in more code, but maybe a nicer interface.
No, this is fine, will pull soonish.
Thanks, published as 0.12.1
Calling
.pack
or.packDeps
would throw if used inside a directory with a package with no dependencies (or dev dependencies).