.config/utils.js
function dirMaker(target) {
    // check if parent directory exists
    var parentDir = path_1.dirname(target);
    if (!fs_1.existsSync(parentDir)) {
        dirMaker(parentDir);
    }
    // check if directory exists
    if (!fs_1.existsSync(target)) {
        fs_1.mkdirSync(target);
    }
}
function dirMaker(target) {
    // check if parent directory exists
    var parentDir = path_1.dirname(target);
    if (!fs_1.existsSync(parentDir)) {
        dirMaker(parentDir);
    }
    // check if directory exists
    if (!fs_1.existsSync(target)) {
        fs_1.mkdirSync(target);
    }
}
function dirMaker ( target ) { // check if parent directory exists var parentDir = path_1 . dirname ( target ) ; if ( ! fs_1 . existsSync ( parentDir ) ) { dirMaker ( parentDir ) ; } // check if directory exists if ( ! fs_1 . existsSync ( target ) ) { fs_1 . mkdirSync ( target ) ; } }
Creates directories recursively
Creates directories recursively