Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4 from amilajack/patch-1
Browse files Browse the repository at this point in the history
Make require statement conditional
  • Loading branch information
nolanlawson committed May 21, 2018
2 parents 4920981 + f643cdf commit 11dba88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

var lie = require('lie');
if (typeof Promise === 'undefined') {
var lie = require('lie');
global.Promise = lie;
}
var denodeify = require('denodeify');
Expand Down Expand Up @@ -124,4 +124,4 @@ Promise.resolve().then(function () {
}).catch(function (err) {
console.log(err.stack);
process.exit(1);
});
});

0 comments on commit 11dba88

Please sign in to comment.