diff options
Diffstat (limited to 'node_modules/resolve-dir/index.js')
-rw-r--r-- | node_modules/resolve-dir/index.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/node_modules/resolve-dir/index.js b/node_modules/resolve-dir/index.js deleted file mode 100644 index 3fe5366..0000000 --- a/node_modules/resolve-dir/index.js +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * resolve-dir <https://github.com/jonschlinkert/resolve-dir> - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -var path = require('path'); -var expand = require('expand-tilde'); -var gm = require('global-modules'); - -module.exports = function resolveDir(dir) { - if (dir.charAt(0) === '~') { - dir = expand(dir); - } - if (dir.charAt(0) === '@') { - dir = path.join(gm, dir.slice(1)); - } - return dir; -}; |