diff --git a/src/cool/bootstrap/eps.ts b/src/cool/bootstrap/eps.ts index f88cc6c..b998687 100644 --- a/src/cool/bootstrap/eps.ts +++ b/src/cool/bootstrap/eps.ts @@ -4,7 +4,7 @@ import { Module } from "../types"; import { path2Obj } from "../utils"; import { config, isDev } from "/@/config"; import { eps } from "virtual:eps"; -import { hmr } from "../hook"; +import { hmr } from "../hooks"; import { module } from "../module"; // 更新事件 diff --git a/src/cool/bootstrap/module.ts b/src/cool/bootstrap/module.ts index 3f81f23..48f18d8 100644 --- a/src/cool/bootstrap/module.ts +++ b/src/cool/bootstrap/module.ts @@ -2,7 +2,7 @@ import { App } from "vue"; import { isFunction, orderBy, chain } from "lodash-es"; import { filename } from "../utils"; import { module } from "../module"; -import { hmr } from "../hook"; +import { hmr } from "../hooks"; // 扫描文件 const files: any = import.meta.glob( diff --git a/src/cool/hook/browser.ts b/src/cool/hooks/browser.ts similarity index 100% rename from src/cool/hook/browser.ts rename to src/cool/hooks/browser.ts diff --git a/src/cool/hook/hmr.ts b/src/cool/hooks/hmr.ts similarity index 100% rename from src/cool/hook/hmr.ts rename to src/cool/hooks/hmr.ts diff --git a/src/cool/hook/index.ts b/src/cool/hooks/index.ts similarity index 100% rename from src/cool/hook/index.ts rename to src/cool/hooks/index.ts diff --git a/src/cool/hook/mitt.ts b/src/cool/hooks/mitt.ts similarity index 100% rename from src/cool/hook/mitt.ts rename to src/cool/hooks/mitt.ts diff --git a/src/cool/index.ts b/src/cool/index.ts index d06dd5c..0942ffc 100644 --- a/src/cool/index.ts +++ b/src/cool/index.ts @@ -1,6 +1,6 @@ export * from "./service"; export * from "./bootstrap"; -export * from "./hook"; +export * from "./hooks"; export * from "./module"; export * from "./router"; export * from "./types"; diff --git a/src/cool/module/index.ts b/src/cool/module/index.ts index 84b4082..d85db58 100644 --- a/src/cool/module/index.ts +++ b/src/cool/module/index.ts @@ -1,5 +1,5 @@ -import { Module } from "../types"; -import { hmr } from "../hook"; +import { type Module } from "../types"; +import { hmr } from "../hooks"; import { dirs } from "virtual:module"; // 模块列表 diff --git a/src/cool/service/index.ts b/src/cool/service/index.ts index fc1fc5e..ee01e75 100644 --- a/src/cool/service/index.ts +++ b/src/cool/service/index.ts @@ -1,4 +1,4 @@ -import { hmr } from "../hook"; +import { hmr } from "../hooks"; import { BaseService } from "./base"; // service 数据集合