projex
Version:
A command line to manage the workflow
16 lines (15 loc) • 523 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCurrentDirectory = void 0;
/**
* The function getCurrentDirectory returns the root directory name of the current working directory.
* @returns The function `getCurrentDirectory` returns the root directory name of the current working
* directory.
*/
const getCurrentDirectory = () => {
if (process.env.OCLIF_COMPILATION) {
return "";
}
return process.cwd();
};
exports.getCurrentDirectory = getCurrentDirectory;