This commit is contained in:
jacob
2024-04-28 13:48:50 -05:00
parent 91b3768e37
commit 30230d49c3
6 changed files with 35 additions and 28 deletions

View File

@@ -8,6 +8,10 @@ import type { Module } from '../types/core-modules';
import { existsSync } from 'fs';
import type { Logging } from './contracts/logging';
export const parseCallsite = (fpath: string) => {
return parse(fpath.replace(/file:\\?/, "")).name;
}
export const shouldHandle = (path: string, fpath: string) => {
const file_name = fpath+extname(path);
let newPath = join(dirname(path), file_name)