Initial system import

This commit is contained in:
2025-12-25 23:08:06 +01:00
commit 4beb5806eb
4623 changed files with 682363 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
var path = require('path');
module.exports = function (opts) {
if (!opts) {
opts = {};
}
var cwd = opts.cwd;
var configPath = opts.configPath;
// if a path to the desired config was specified
// but no cwd was provided, use configPath dir
if (typeof configPath === 'string' && !cwd) {
cwd = path.dirname(path.resolve(configPath));
}
if (typeof cwd === 'string') {
return path.resolve(cwd);
}
return process.cwd();
};