Files
cht-lawfirm/front/app/node_modules/@angular/compiler-cli/bundles/chunk-DLVFMDSC.js
2023-01-16 17:49:38 +01:00

31 lines
980 B
JavaScript
Executable File

import {createRequire as __cjsCompatRequire} from 'module';
const require = __cjsCompatRequire(import.meta.url);
const __ESM_IMPORT_META_URL__ = import.meta.url;
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/locking/lock_file_with_child_process/util.mjs
function removeLockFile(fs, logger, lockFilePath, pid) {
try {
logger.debug(`Attempting to remove lock-file at ${lockFilePath}.`);
const lockFilePid = fs.readFile(lockFilePath);
if (lockFilePid === pid) {
logger.debug(`PIDs match (${pid}), so removing ${lockFilePath}.`);
fs.removeFile(lockFilePath);
} else {
logger.debug(`PIDs do not match (${pid} and ${lockFilePid}), so not removing ${lockFilePath}.`);
}
} catch (e) {
if (e.code === "ENOENT") {
logger.debug(`The lock-file at ${lockFilePath} was already removed.`);
} else {
throw e;
}
}
}
export {
removeLockFile
};
//# sourceMappingURL=chunk-DLVFMDSC.js.map