Skip to content

Commit

Permalink
[feat] return appdir if set
Browse files Browse the repository at this point in the history
  • Loading branch information
icfr committed Sep 26, 2016
1 parent 1585abf commit f9c970d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict';
/* global appdir */
/* eslint global-require: 0 */
var fs = require('fs');
var path = require('path');
Expand All @@ -15,6 +16,9 @@ module.exports = {
*/
workspace: function workspace() {
var dir, dirs, _i, _len;
if (global.appdir) {
return appdir;
}
if (process.env.PWD && existsSync(process.env.PWD)) {
return process.env.PWD;
}
Expand Down

0 comments on commit f9c970d

Please sign in to comment.