diff --git a/Source/Function/Integration.ts b/Source/Function/Integration.ts index 40a3470..8d4dc57 100644 --- a/Source/Function/Integration.ts +++ b/Source/Function/Integration.ts @@ -27,8 +27,8 @@ export default ((...[_Option = {}]: Parameters) => { return { name: "@playform/remove", hooks: { - "astro:build:done": async ({ dir }) => { - if (!Paths.size) { + "astro:build:done": ({ dir }) => { + if (Paths.size === 0) { Paths.add(dir); } }, @@ -36,7 +36,7 @@ export default ((...[_Option = {}]: Parameters) => { }; }) satisfies Interface as Interface; -import type Interface from "@Interface/Integraton.js"; +import type Interface from "../Interface/Integraton.js"; import type Path from "@playform/pipe/Target/Type/Path.js"; export const { default: Default } = await import("@Variable/Option.js"); diff --git a/Source/Interface/Integraton.ts b/Source/Interface/Integraton.ts index 1325e8e..4cd14ff 100644 --- a/Source/Interface/Integraton.ts +++ b/Source/Interface/Integraton.ts @@ -6,6 +6,6 @@ export default interface Interface { (Option: Option): AstroIntegration; } -import type Option from "@Type/Option.js"; +import type Option from "../Type/Option.js"; import type { AstroIntegration } from "astro";