Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Sep 22, 2023
1 parent a9f2cfc commit 7f3d6c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Source/Index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
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) {
if (
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<optionPath>();
const paths = new Set<Path>();

if (typeof _options["path"] !== "undefined") {
if (
Expand Down
1 change: 1 addition & 0 deletions Source/Option/Index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Option as _Option } from "files-pipe";

import { Default, Merge } from "files-pipe";

export interface Option extends _Option {
Expand Down

0 comments on commit 7f3d6c4

Please sign in to comment.