Skip to content

Commit

Permalink
fix no-op in case of no package.json, v3.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tabrindle committed Nov 13, 2017
1 parent fff899f commit a3d7e81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "envinfo",
"version": "3.9.0",
"version": "3.9.1",
"description": "Info about your dev environment for debugging purposes",
"repository": "https://github.com/tabrindle/envinfo",
"author": "tabrindle@gmail.com",
Expand Down
3 changes: 3 additions & 0 deletions src/envinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ module.exports.print = function print(options) {
if (!packageJson) {
log.push('ERROR: package.json not found!');
log.push('');
log = log.join('\n');
if (options.clipboard) copypasta.copy(log);
console.log(log);
return;
}

Expand Down

0 comments on commit a3d7e81

Please sign in to comment.