From d7f6dd37cf23401cf56dca3734fd066028c67365 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Fri, 4 Oct 2024 20:23:15 +0300 Subject: [PATCH] --- Source/Function/Integration.ts | 5 ++--- Source/Function/{Compress.ts => Pipe.ts} | 10 +++++----- Source/Interface/Compress.ts | 20 ------------------- Source/Interface/Pipe.ts | 23 ++++++++++++++++++++++ Target/Function/CLI.d.ts | 4 ++-- Target/Function/Directory.d.ts | 2 +- Target/Function/Image/Writesharp.d.ts | 2 +- Target/Function/Integration.d.ts | 4 ++-- Target/Function/Integration.js | 2 +- Target/Interface/CSS/csso.d.ts | 2 +- Target/Interface/CSS/lightningcss.d.ts | 2 +- Target/Interface/Directory.d.ts | 2 +- Target/Interface/Image/Onsharp.d.ts | 4 ++-- Target/Interface/Image/Writesharp.d.ts | 4 ++-- Target/Interface/Image/sharp.d.ts | 2 +- Target/Interface/Integration.d.ts | 4 ++-- Target/Interface/Option.d.ts | 18 ++++++++--------- Target/Interface/Parser.d.ts | 10 +++++----- Target/Type/HTML/html-minifier-terser.d.ts | 2 +- Target/Type/JavaScript/terser.d.ts | 2 +- Target/Type/SVG/svgo.d.ts | 2 +- Target/Variable/CSS/csso.d.ts | 2 +- Target/Variable/CSS/lightningcss.d.ts | 2 +- Target/Variable/Image/Mapsharp.d.ts | 2 +- Target/Variable/Image/sharp.d.ts | 2 +- Target/Variable/Map.d.ts | 2 +- Target/Variable/Option.d.ts | 4 ++-- Target/Variable/Parser.d.ts | 2 +- package.json | 2 +- 29 files changed, 73 insertions(+), 71 deletions(-) rename Source/Function/{Compress.ts => Pipe.ts} (52%) delete mode 100644 Source/Interface/Compress.ts create mode 100644 Source/Interface/Pipe.ts diff --git a/Source/Function/Integration.ts b/Source/Function/Integration.ts index e572def8e..470cc4f27 100644 --- a/Source/Function/Integration.ts +++ b/Source/Function/Integration.ts @@ -255,12 +255,11 @@ export default ((...[_Option = {}]: Parameters) => { } for (const Path of Paths) { - (await import("@Function/Compress.js")).default( + (await import("@Function/Pipe.js")).default( Cache, Logger, Path, - _Map, - Type, + _Map[Type] ?? "**/*", Exclude, _Action, ); diff --git a/Source/Function/Compress.ts b/Source/Function/Pipe.ts similarity index 52% rename from Source/Function/Compress.ts rename to Source/Function/Pipe.ts index 653af3007..61054a679 100644 --- a/Source/Function/Compress.ts +++ b/Source/Function/Pipe.ts @@ -1,11 +1,11 @@ -import type Interface from "../Interface/Compress.js"; +import type Interface from "../Interface/Pipe.js"; /** - * @module Compress + * @module Pipe * */ export default (async ( - ...[Cache, Logger, Path, _Map, Type, Exclude, Action]: Parameters + ...[Cache, Logger, Path, FileBy, FileNot, Action]: Parameters ) => await ( await ( @@ -14,6 +14,6 @@ export default (async ( Cache, Logger, ).In(Path) - ).By(_Map[Type] ?? "**/*") - ).Not(Exclude) + ).By(FileBy) + ).Not(FileNot) ).Pipe(Action)) satisfies Interface as Interface; diff --git a/Source/Interface/Compress.ts b/Source/Interface/Compress.ts deleted file mode 100644 index 28dd52223..000000000 --- a/Source/Interface/Compress.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type Pipe from "@playform/pipe/Target/Class/Pipe.js"; -import type Path from "@playform/pipe/Target/Type/Path.js"; - -import type Option from "../Interface/Option.js"; - -/** - * @module Compress - * - */ -export default interface Interface { - ( - Cache: Option["Cache"], - Logger: Option["Logger"], - Path: Path, - _Map: Exclude, - Type: keyof Option["Map"], - Exclude: Option["Exclude"], - Action: Option["Action"], - ): Promise; -} diff --git a/Source/Interface/Pipe.ts b/Source/Interface/Pipe.ts new file mode 100644 index 000000000..9f601f760 --- /dev/null +++ b/Source/Interface/Pipe.ts @@ -0,0 +1,23 @@ +import type Pipe from "@playform/pipe/Target/Interface/Class.js"; + +import type Option from "./Option.js"; + +/** + * @module Pipe + * + */ +export default interface Interface { + ( + Cache: Option["Cache"], + + Logger: Option["Logger"], + + Path: Parameters[0], + + FileBy: Parameters[0], + + FileNot: Parameters[0], + + Action: Exclude, + ): Promise; +} diff --git a/Target/Function/CLI.d.ts b/Target/Function/CLI.d.ts index 917b6c5c3..3564f6d0c 100644 --- a/Target/Function/CLI.d.ts +++ b/Target/Function/CLI.d.ts @@ -8,12 +8,12 @@ export declare let System: string; declare const _default: Interface; export default _default; export declare const Default: { - Path: string; Cache: { Search: string; Folder: string; }; Logger: 2; + Exclude: false; Action: { Failed: ({ Input }: import("@playform/pipe/Target/Interface/File.js").default) => Promise; Passed: ({ Before, Buffer }: import("@playform/pipe/Target/Interface/File.js").default) => Promise; @@ -23,8 +23,8 @@ export declare const Default: { Wrote: ({ Buffer }: import("@playform/pipe/Target/Interface/File.js").default) => Promise; Fulfilled: ({ File }: import("@playform/pipe/Target/Interface/Plan.js").default) => Promise; }; + Path: string; File: string; - Exclude: false; CSS: { csso: import("../Interface/CSS/csso.js").default; lightningcss: import("../Interface/CSS/lightningcss.js").default; diff --git a/Target/Function/Directory.d.ts b/Target/Function/Directory.d.ts index 83cb5181f..143582225 100644 --- a/Target/Function/Directory.d.ts +++ b/Target/Function/Directory.d.ts @@ -1,7 +1,7 @@ +import type Interface from "../Interface/Directory.js"; /** * @module Directory * */ declare const _default: Interface; export default _default; -import type Interface from "../Interface/Directory.js"; diff --git a/Target/Function/Image/Writesharp.d.ts b/Target/Function/Image/Writesharp.d.ts index 89d4a1b4f..a10224c74 100644 --- a/Target/Function/Image/Writesharp.d.ts +++ b/Target/Function/Image/Writesharp.d.ts @@ -1,8 +1,8 @@ +import type Interface from "../../Interface/Image/Writesharp.js"; /** * @module Image * */ declare const _default: Interface; export default _default; -import type Interface from "../../Interface/Image/Writesharp.js"; export declare const _Map: import("../../Interface/Map.js").default; diff --git a/Target/Function/Integration.d.ts b/Target/Function/Integration.d.ts index f9688390e..2943feb57 100644 --- a/Target/Function/Integration.d.ts +++ b/Target/Function/Integration.d.ts @@ -8,12 +8,12 @@ export declare let System: string; declare const _default: Interface; export default _default; export declare const Default: { - Path: string; Cache: { Search: string; Folder: string; }; Logger: 2; + Exclude: false; Action: { Failed: ({ Input }: import("@playform/pipe/Target/Interface/File.js").default) => Promise; Passed: ({ Before, Buffer }: import("@playform/pipe/Target/Interface/File.js").default) => Promise; @@ -23,8 +23,8 @@ export declare const Default: { Wrote: ({ Buffer }: import("@playform/pipe/Target/Interface/File.js").default) => Promise; Fulfilled: ({ File }: import("@playform/pipe/Target/Interface/Plan.js").default) => Promise; }; + Path: string; File: string; - Exclude: false; CSS: { csso: import("../Interface/CSS/csso.js").default; lightningcss: import("../Interface/CSS/lightningcss.js").default; diff --git a/Target/Function/Integration.js b/Target/Function/Integration.js index c554727a7..9201b412b 100644 --- a/Target/Function/Integration.js +++ b/Target/Function/Integration.js @@ -1 +1 @@ -let l;var E=(...[c={}])=>{Object.entries(c).forEach(([a,r])=>Object.defineProperty(c,a,{value:r===!0?u[a]:c[a]}));const{Path:f,Cache:p,Logger:S,Map:d,Exclude:j,Action:g,CSS:b,HTML:I,Image:n,JavaScript:A,SVG:P,Parser:h}=s(u,c),m=new Set;return typeof f<"u"&&(Array.isArray(f)||f instanceof Set)&&f.forEach(a=>m.add(a)),typeof h=="object"&&Object.entries(h).forEach(([a,r])=>Object.defineProperty(h,a,{value:Array.isArray(r)?r:[r]})),{name:"@playform/compress",hooks:{"astro:config:done":async({config:{outDir:{pathname:a}}})=>{l=(await import("path")).parse(a).dir.replace(/\\/g,"/"),l.startsWith("/")&&(l=l.substring(1))},"astro:build:done":async({dir:a})=>{if(typeof d=="object"){m.size===0&&m.add(a),typeof p=="object"&&p.Search===x&&(p.Search=a);for(const[r,i]of Object.entries({CSS:b,HTML:I,Image:n,JavaScript:A,SVG:P}))if(!(!(i&&d[r])||typeof i!="object")){y=s(g,s(g,{Wrote:async({Buffer:t,Input:o})=>{switch(r){case"CSS":{let e=t.toString();return i.lightningcss&&(e=(await import("lightningcss")).transform(s({code:(await import("buffer")).Buffer.from(e),filename:o},i.lightningcss)).code.toString()),i.csso&&(e=(await import("csso")).minify(e,i.csso).css),e}case"HTML":return await(await import("html-minifier-terser")).minify(t.toString(),i["html-minifier-terser"]);case"JavaScript":return(await(await import("terser")).minify(t.toString(),i.terser)).code??t;case"Image":try{return t instanceof(await import("sharp")).default?await(await import("./Image/Writesharp.js")).default(i.sharp,{Buffer:t,Input:o}):t}catch(e){return console.log(e),t}case"SVG":return(await import("svgo")).optimize(t.toString(),i.svgo).data??t;default:return t}},Fulfilled:async({File:t,Info:{Total:o}})=>t>0?`${(await import("kleur/colors")).green(`\u2713\u2001Successfully compressed a total of ${t} ${r} ${t===1?"file":"files"} for ${(await import("@playform/pipe/Target/Function/Bytes.js")).default(o)}.`)}`:!1})),r==="Image"&&(y=s(y,{Read:async({Input:t,Buffer:o})=>{try{(await import("sharp")).default.cache(!1);const{format:e}=await(await import("sharp")).default(t).metadata(),w={animated:e==="webp"||e==="gif"};return(await import("sharp")).default(t,typeof n=="object"&&typeof n.sharp=="object"&&typeof n.sharp.sharp=="object"?s(w,n.sharp?.sharp):w)}catch(e){return console.log(e),o}}}));for(const t of m)await(await(await(await new(await import("@playform/pipe")).default(p,S).In(t)).By(d[r]??"**/*")).Not(j)).Pipe(y)}}}}}};const{default:u}=await import("../Variable/Option.js"),{default:{Cache:{Search:x}}}=await import("@playform/pipe/Target/Variable/Option.js"),{default:s}=await import("./Merge.js");let y;export{u as Default,s as Merge,x as Search,l as System,y as _Action,E as default}; +let l;var E=(...[c={}])=>{Object.entries(c).forEach(([a,r])=>Object.defineProperty(c,a,{value:r===!0?w[a]:c[a]}));const{Path:f,Cache:p,Logger:S,Map:d,Exclude:j,Action:g,CSS:b,HTML:A,Image:n,JavaScript:I,SVG:P,Parser:h}=s(w,c),m=new Set;return typeof f<"u"&&(Array.isArray(f)||f instanceof Set)&&f.forEach(a=>m.add(a)),typeof h=="object"&&Object.entries(h).forEach(([a,r])=>Object.defineProperty(h,a,{value:Array.isArray(r)?r:[r]})),{name:"@playform/compress",hooks:{"astro:config:done":async({config:{outDir:{pathname:a}}})=>{l=(await import("path")).parse(a).dir.replace(/\\/g,"/"),l.startsWith("/")&&(l=l.substring(1))},"astro:build:done":async({dir:a})=>{if(typeof d=="object"){m.size===0&&m.add(a),typeof p=="object"&&p.Search===x&&(p.Search=a);for(const[r,o]of Object.entries({CSS:b,HTML:A,Image:n,JavaScript:I,SVG:P}))if(!(!(o&&d[r])||typeof o!="object")){y=s(g,s(g,{Wrote:async({Buffer:t,Input:i})=>{switch(r){case"CSS":{let e=t.toString();return o.lightningcss&&(e=(await import("lightningcss")).transform(s({code:(await import("buffer")).Buffer.from(e),filename:i},o.lightningcss)).code.toString()),o.csso&&(e=(await import("csso")).minify(e,o.csso).css),e}case"HTML":return await(await import("html-minifier-terser")).minify(t.toString(),o["html-minifier-terser"]);case"JavaScript":return(await(await import("terser")).minify(t.toString(),o.terser)).code??t;case"Image":try{return t instanceof(await import("sharp")).default?await(await import("./Image/Writesharp.js")).default(o.sharp,{Buffer:t,Input:i}):t}catch(e){return console.log(e),t}case"SVG":return(await import("svgo")).optimize(t.toString(),o.svgo).data??t;default:return t}},Fulfilled:async({File:t,Info:{Total:i}})=>t>0?`${(await import("kleur/colors")).green(`\u2713\u2001Successfully compressed a total of ${t} ${r} ${t===1?"file":"files"} for ${(await import("@playform/pipe/Target/Function/Bytes.js")).default(i)}.`)}`:!1})),r==="Image"&&(y=s(y,{Read:async({Input:t,Buffer:i})=>{try{(await import("sharp")).default.cache(!1);const{format:e}=await(await import("sharp")).default(t).metadata(),u={animated:e==="webp"||e==="gif"};return(await import("sharp")).default(t,typeof n=="object"&&typeof n.sharp=="object"&&typeof n.sharp.sharp=="object"?s(u,n.sharp?.sharp):u)}catch(e){return console.log(e),i}}}));for(const t of m)(await import("./Compress.js")).default(p,S,t,d[r]??"**/*",j,y)}}}}}};const{default:w}=await import("../Variable/Option.js"),{default:{Cache:{Search:x}}}=await import("@playform/pipe/Target/Variable/Option.js"),{default:s}=await import("./Merge.js");let y;export{w as Default,s as Merge,x as Search,l as System,y as _Action,E as default}; diff --git a/Target/Interface/CSS/csso.d.ts b/Target/Interface/CSS/csso.d.ts index 7d5e6f9c8..a4695ac1d 100644 --- a/Target/Interface/CSS/csso.d.ts +++ b/Target/Interface/CSS/csso.d.ts @@ -1,3 +1,4 @@ +import type { CompressOptions, MinifyOptions } from "csso"; /** * @module CSS * @@ -29,4 +30,3 @@ export default interface Interface extends MinifyOptions, CompressOptions { */ restructure?: boolean; } -import type { CompressOptions, MinifyOptions } from "csso"; diff --git a/Target/Interface/CSS/lightningcss.d.ts b/Target/Interface/CSS/lightningcss.d.ts index f11032841..c41397331 100644 --- a/Target/Interface/CSS/lightningcss.d.ts +++ b/Target/Interface/CSS/lightningcss.d.ts @@ -1,3 +1,4 @@ +import type { CustomAtRules, TransformOptions } from "lightningcss"; /** * @module CSS * @@ -18,4 +19,3 @@ export default interface Interface extends Omit, */ unusedSymbols?: string[] | boolean; } -import type { CustomAtRules, TransformOptions } from "lightningcss"; diff --git a/Target/Interface/Directory.d.ts b/Target/Interface/Directory.d.ts index b10a2bfae..406d95b85 100644 --- a/Target/Interface/Directory.d.ts +++ b/Target/Interface/Directory.d.ts @@ -1,3 +1,4 @@ +import type { ParsedPath } from "path"; /** * @module Directory * @@ -5,4 +6,3 @@ export default interface Interface { (Path: string): Promise; } -import type { ParsedPath } from "path"; diff --git a/Target/Interface/Image/Onsharp.d.ts b/Target/Interface/Image/Onsharp.d.ts index c8ae5d3b5..3544e577e 100644 --- a/Target/Interface/Image/Onsharp.d.ts +++ b/Target/Interface/Image/Onsharp.d.ts @@ -1,3 +1,5 @@ +import type File from "@playform/pipe/Target/Interface/File.js"; +import type { Sharp } from "sharp"; /** * @module Image * @@ -7,5 +9,3 @@ export default interface Interface extends Omit { [key: string]: any; } & Sharp; } -import type File from "@playform/pipe/Target/Interface/File.js"; -import type { Sharp } from "sharp"; diff --git a/Target/Interface/Image/Writesharp.d.ts b/Target/Interface/Image/Writesharp.d.ts index 538bfad4c..c266cbe74 100644 --- a/Target/Interface/Image/Writesharp.d.ts +++ b/Target/Interface/Image/Writesharp.d.ts @@ -1,3 +1,5 @@ +import type On from "../../Interface/Image/Onsharp.js"; +import type Option from "../../Interface/Image/sharp.js"; /** * @module Image * @@ -5,5 +7,3 @@ export default interface Interface { (Option: Option, On: On): Promise; } -import type On from "../../Interface/Image/Onsharp.js"; -import type Option from "../../Interface/Image/sharp.js"; diff --git a/Target/Interface/Image/sharp.d.ts b/Target/Interface/Image/sharp.d.ts index f7f642297..b48804a6b 100644 --- a/Target/Interface/Image/sharp.d.ts +++ b/Target/Interface/Image/sharp.d.ts @@ -1,3 +1,4 @@ +import type { AvifOptions, GifOptions, HeifOptions, JpegOptions, PngOptions, SharpOptions, TiffOptions, WebpOptions } from "sharp"; /** * @module Image * @@ -13,4 +14,3 @@ export default interface Interface { webp?: boolean | WebpOptions; sharp?: boolean | SharpOptions; } -import type { AvifOptions, GifOptions, HeifOptions, JpegOptions, PngOptions, SharpOptions, TiffOptions, WebpOptions } from "sharp"; diff --git a/Target/Interface/Integration.d.ts b/Target/Interface/Integration.d.ts index b374a93b8..88c1b86b5 100644 --- a/Target/Interface/Integration.d.ts +++ b/Target/Interface/Integration.d.ts @@ -1,3 +1,5 @@ +import type { AstroIntegration } from "astro"; +import type Option from "../Interface/Option.js"; /** * @module Integration * @@ -5,5 +7,3 @@ export default interface Interface { (Option?: Option): AstroIntegration; } -import type { AstroIntegration } from "astro"; -import type Option from "../Interface/Option.js"; diff --git a/Target/Interface/Option.d.ts b/Target/Interface/Option.d.ts index 8bd5036b4..17cc83a98 100644 --- a/Target/Interface/Option.d.ts +++ b/Target/Interface/Option.d.ts @@ -1,3 +1,12 @@ +import type Option from "@playform/pipe/Target/Interface/Option.js"; +import type csso from "../Interface/CSS/csso.js"; +import type lightningcss from "../Interface/CSS/lightningcss.js"; +import type sharp from "../Interface/Image/sharp.js"; +import type _Map from "../Interface/Map.js"; +import type Parser from "../Interface/Parser.js"; +import type html_minifier_terser from "../Type/HTML/html-minifier-terser.js"; +import type terser from "../Type/JavaScript/terser.js"; +import type svgo from "../Type/SVG/svgo.js"; /** * @module Option * @@ -50,12 +59,3 @@ export default interface Interface extends Option { */ Parser?: Parser; } -import type csso from "../Interface/CSS/csso.js"; -import type lightningcss from "../Interface/CSS/lightningcss.js"; -import type sharp from "../Interface/Image/sharp.js"; -import type html_minifier_terser from "../Type/HTML/html-minifier-terser.js"; -import type terser from "../Type/JavaScript/terser.js"; -import type svgo from "../Type/SVG/svgo.js"; -import type _Map from "../Interface/Map.js"; -import type Parser from "../Interface/Parser.js"; -import type Option from "@playform/pipe/Target/Interface/Option.js"; diff --git a/Target/Interface/Parser.d.ts b/Target/Interface/Parser.d.ts index 0ac6332da..1859b1b9a 100644 --- a/Target/Interface/Parser.d.ts +++ b/Target/Interface/Parser.d.ts @@ -1,3 +1,8 @@ +import type CSS from "../Type/Parser/CSS.js"; +import type HTML from "../Type/Parser/HTML.js"; +import type Image from "../Type/Parser/Image.js"; +import type JavaScript from "../Type/Parser/JavaScript.js"; +import type SVG from "../Type/Parser/SVG.js"; /** * @module Parser * @@ -10,8 +15,3 @@ export default interface Interface { JavaScript?: JavaScript | JavaScript[]; SVG?: SVG | SVG[]; } -import type CSS from "../Type/Parser/CSS.js"; -import type HTML from "../Type/Parser/HTML.js"; -import type Image from "../Type/Parser/Image.js"; -import type JavaScript from "../Type/Parser/JavaScript.js"; -import type SVG from "../Type/Parser/SVG.js"; diff --git a/Target/Type/HTML/html-minifier-terser.d.ts b/Target/Type/HTML/html-minifier-terser.d.ts index 86bf1dfc8..050c4d926 100644 --- a/Target/Type/HTML/html-minifier-terser.d.ts +++ b/Target/Type/HTML/html-minifier-terser.d.ts @@ -1,7 +1,7 @@ +import type { Options } from "html-minifier-terser"; /** * @module HTML * */ export type Type = Options; export type { Type as default }; -import type { Options } from "html-minifier-terser"; diff --git a/Target/Type/JavaScript/terser.d.ts b/Target/Type/JavaScript/terser.d.ts index 3615fb6b4..249feb0d3 100644 --- a/Target/Type/JavaScript/terser.d.ts +++ b/Target/Type/JavaScript/terser.d.ts @@ -1,7 +1,7 @@ +import type { MinifyOptions } from "terser"; /** * @module JavaScript * */ export type Type = MinifyOptions; export type { Type as default }; -import type { MinifyOptions } from "terser"; diff --git a/Target/Type/SVG/svgo.d.ts b/Target/Type/SVG/svgo.d.ts index d76ba6e13..7e65daf76 100644 --- a/Target/Type/SVG/svgo.d.ts +++ b/Target/Type/SVG/svgo.d.ts @@ -1,7 +1,7 @@ +import type { Config } from "svgo"; /** * @module SVG * */ export type Type = Config; export type { Type as default }; -import type { Config } from "svgo"; diff --git a/Target/Variable/CSS/csso.d.ts b/Target/Variable/CSS/csso.d.ts index 120b5ce0a..9a6352e1d 100644 --- a/Target/Variable/CSS/csso.d.ts +++ b/Target/Variable/CSS/csso.d.ts @@ -1,7 +1,7 @@ +import type Interface from "../../Interface/CSS/csso.js"; /** * @module CSS * */ declare const _default: Interface; export default _default; -import type Interface from "../../Interface/CSS/csso.js"; diff --git a/Target/Variable/CSS/lightningcss.d.ts b/Target/Variable/CSS/lightningcss.d.ts index b27a49a15..ad976d10d 100644 --- a/Target/Variable/CSS/lightningcss.d.ts +++ b/Target/Variable/CSS/lightningcss.d.ts @@ -1,7 +1,7 @@ +import type Interface from "../../Interface/CSS/lightningcss.js"; /** * @module CSS * */ declare const _default: Interface; export default _default; -import type Interface from "../../Interface/CSS/lightningcss.js"; diff --git a/Target/Variable/Image/Mapsharp.d.ts b/Target/Variable/Image/Mapsharp.d.ts index 3fe015622..12e7065f9 100644 --- a/Target/Variable/Image/Mapsharp.d.ts +++ b/Target/Variable/Image/Mapsharp.d.ts @@ -1,7 +1,7 @@ +import type Interface from "../../Interface/Map.js"; /** * @module Image * */ declare const _default: Interface; export default _default; -import type Interface from "../../Interface/Map.js"; diff --git a/Target/Variable/Image/sharp.d.ts b/Target/Variable/Image/sharp.d.ts index ea25cb6b3..f2d31c6f2 100644 --- a/Target/Variable/Image/sharp.d.ts +++ b/Target/Variable/Image/sharp.d.ts @@ -1,7 +1,7 @@ +import type Interface from "../../Interface/Image/sharp.js"; /** * @module Image * */ declare const _default: Interface; export default _default; -import type Interface from "../../Interface/Image/sharp.js"; diff --git a/Target/Variable/Map.d.ts b/Target/Variable/Map.d.ts index 27b0c8c34..02484f20c 100644 --- a/Target/Variable/Map.d.ts +++ b/Target/Variable/Map.d.ts @@ -1,7 +1,7 @@ +import type Interface from "../Interface/Map.js"; /** * @module Map * */ declare const _default: Interface; export default _default; -import type Interface from "../Interface/Map.js"; diff --git a/Target/Variable/Option.d.ts b/Target/Variable/Option.d.ts index 9f0e5f48b..4eb01e8e2 100644 --- a/Target/Variable/Option.d.ts +++ b/Target/Variable/Option.d.ts @@ -3,12 +3,12 @@ * */ declare const _default: { - Path: string; Cache: { Search: string; Folder: string; }; Logger: 2; + Exclude: false; Action: { Failed: ({ Input }: import("@playform/pipe/Target/Interface/File.js").default) => Promise; Passed: ({ Before, Buffer }: import("@playform/pipe/Target/Interface/File.js").default) => Promise; @@ -18,8 +18,8 @@ declare const _default: { Wrote: ({ Buffer }: import("@playform/pipe/Target/Interface/File.js").default) => Promise; Fulfilled: ({ File }: import("@playform/pipe/Target/Interface/Plan.js").default) => Promise; }; + Path: string; File: string; - Exclude: false; CSS: { csso: import("../Interface/CSS/csso.js").default; lightningcss: import("../Interface/CSS/lightningcss.js").default; diff --git a/Target/Variable/Parser.d.ts b/Target/Variable/Parser.d.ts index 9a4836314..e02d8a532 100644 --- a/Target/Variable/Parser.d.ts +++ b/Target/Variable/Parser.d.ts @@ -1,7 +1,7 @@ +import type Interface from "../Interface/Parser.js"; /** * @module Parser * */ declare const _default: Interface; export default _default; -import type Interface from "../Interface/Parser.js"; diff --git a/package.json b/package.json index 75f2f8dd3..714023bed 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "astro": "4.15.11", "commander": "12.1.0", "csso": "5.0.5", - "deepmerge-ts": "7.1.0", + "deepmerge-ts": "7.1.1", "html-minifier-terser": "7.2.0", "kleur": "4.1.5", "lightningcss": "1.27.0",