diff --git a/index.js b/index.js index 7fd5bde..506e220 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ 'use strict'; var lib = require('./lib/app-root-path.js'); -module.exports = lib(__dirname); \ No newline at end of file +module.exports = lib(typeof __dirname === "undefined" ? process.cwd() : __dirname); \ No newline at end of file