function deleteOutputDir(root, outputPath) {
    const resolvedOutputPath = path_1.resolve(root, outputPath);
    if (resolvedOutputPath === root) {
        throw new Error('Output path MUST not be project root directory!');
    }
    fs_1.rmdirSync(resolvedOutputPath, { recursive: true, maxRetries: 3 });
}
/**
 * Delete an output directory, but error out if it's the root of the project.
 */
Delete an output directory, but error out if it's the root of the project.
Delete an output directory but error out if it ' s the root of the project .
function deleteOutputDir(root, outputPath) {
    const resolvedOutputPath = path_1.resolve(root, outputPath);
    if (resolvedOutputPath === root) {
        throw new Error('Output path MUST not be project root directory!');
    }
    fs_1.rmdirSync(resolvedOutputPath, { recursive: true, maxRetries: 3 });
}
function deleteOutputDir ( root , outputPath ) { const resolvedOutputPath = path_1 . resolve ( root , outputPath ) ; if ( resolvedOutputPath === root ) { throw new Error ( 'Output path MUST not be project root directory!' ) ; } fs_1 . rmdirSync ( resolvedOutputPath , { recursive : true , maxRetries : 3 } ) ; }
Delete an output directory, but error out if it's the root of the project.
Delete an output directory but error out if it ' s the root of the project .