1 | const path = require('path');
|
2 | const fs = require('fs');
|
3 | const APP_DIRECTORY = fs.realpathSync(process.cwd());
|
4 |
|
5 | module.exports.resolveApp = function resolveApp(...args) {
|
6 | return path.resolve(APP_DIRECTORY, ...args);
|
7 | };
|
8 |
|
9 | module.exports.resolveOwn = function resolveOwn(...args) {
|
10 | return path.resolve(__dirname, '..', ...args);
|
11 | };
|