diff --git a/src/loader/built-in/script/index.ts b/src/loader/built-in/module/index.ts similarity index 100% rename from src/loader/built-in/script/index.ts rename to src/loader/built-in/module/index.ts diff --git a/src/loader/built-in/script/module.ts b/src/loader/built-in/module/module.ts similarity index 98% rename from src/loader/built-in/script/module.ts rename to src/loader/built-in/module/module.ts index 03db794d..090e2ad2 100644 --- a/src/loader/built-in/script/module.ts +++ b/src/loader/built-in/module/module.ts @@ -11,12 +11,12 @@ import createJITI from 'jiti'; import { pathToFileURL } from 'node:url'; import { LocatorInfo, pathToLocatorInfo } from '../../../locator'; import { handleFileLoadError, hasStringProperty, isObject } from '../../../utils'; -import { Loader } from '../../type'; +import { LoaderInterface } from '../../type'; import { buildLoaderFilePath } from '../../utils'; import { ScriptFileLoadOptions } from './type'; import { isJestRuntimeEnvironment, isTsNodeRuntimeEnvironment } from './utils'; -export class ScriptLoader implements Loader { +export class ScriptLoader implements LoaderInterface { protected jiti : JITI; constructor() { diff --git a/src/loader/built-in/script/type.ts b/src/loader/built-in/module/type.ts similarity index 100% rename from src/loader/built-in/script/type.ts rename to src/loader/built-in/module/type.ts diff --git a/src/loader/built-in/script/utils.ts b/src/loader/built-in/module/utils.ts similarity index 100% rename from src/loader/built-in/script/utils.ts rename to src/loader/built-in/module/utils.ts