fix gitignore again

This commit is contained in:
olcxja 2026-05-10 16:36:35 +02:00
commit 5da5c2afe2
3329 changed files with 364540 additions and 3 deletions

View file

@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ignoreENOENTSync = exports.ignoreENOENT = void 0;
const error_js_1 = require("./error.js");
const ignoreENOENT = async (p, rethrow) => p.catch(er => {
if ((0, error_js_1.errorCode)(er) === 'ENOENT') {
return;
}
throw rethrow ?? er;
});
exports.ignoreENOENT = ignoreENOENT;
const ignoreENOENTSync = (fn, rethrow) => {
try {
return fn();
}
catch (er) {
if ((0, error_js_1.errorCode)(er) === 'ENOENT') {
return;
}
throw rethrow ?? er;
}
};
exports.ignoreENOENTSync = ignoreENOENTSync;
//# sourceMappingURL=ignore-enoent.js.map