mirror of
https://github.com/sern-handler/handler
synced 2026-06-23 16:22:15 +00:00
step 1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user