diff --git a/Source/Index.ts b/Source/Index.ts index 9110104..a0709fa 100644 --- a/Source/Index.ts +++ b/Source/Index.ts @@ -1,6 +1,12 @@ -import type { AstroIntegration } from "astro"; import type { Option } from "./Option/Index.js"; -import defaults from "./Option/Index.js"; + +import type { Path } from "files-pipe"; + +import type { AstroIntegration } from "astro"; + +import Default from "./Option/Index.js"; + +import { Merge } from "files-pipe"; export default (Options: Option = {}): AstroIntegration => { for (const Option in Options) { @@ -8,13 +14,13 @@ export default (Options: Option = {}): AstroIntegration => { Object.prototype.hasOwnProperty.call(Options, Option) && Options[Option] === true ) { - Options[Option] = defaults[Option]; + Options[Option] = Default[Option]; } } - const _options = deepmerge(defaults, Options); + const _options = Merge(Default, Options); - const paths = new Set(); + const paths = new Set(); if (typeof _options["path"] !== "undefined") { if ( diff --git a/Source/Option/Index.ts b/Source/Option/Index.ts index b67570d..0b427b9 100644 --- a/Source/Option/Index.ts +++ b/Source/Option/Index.ts @@ -1,4 +1,5 @@ import type { Option as _Option } from "files-pipe"; + import { Default, Merge } from "files-pipe"; export interface Option extends _Option {