code-migration-helpers
Version:
Provides useful (but currently not thorough) code migration helpers
10 lines • 402 B
JavaScript
import { addEntryToCache } from './addEntryToCache.mjs';
import { checkFilepathExtension } from './checkFilepathExtension.mjs';
export const addIndexFileTraverseHandler = async ({ filepath, args: [opts] }) => {
if (!checkFilepathExtension(filepath)) {
return false;
}
await addEntryToCache(filepath, opts);
return true;
};
//# sourceMappingURL=addIndexFileTraverseHandler.js.map