From 3b035f58ab03c82a78d1102c54f990fb5d6daf78 Mon Sep 17 00:00:00 2001 From: "Nikola R. Hristov" Date: Mon, 1 Apr 2024 13:59:38 +0300 Subject: [PATCH] BiomeAstro/v0.0.3 --- CHANGELOG.md | 4 ++++ .../functions/Configuration.configuration.html | 2 +- .../functions/Configuration.readFile.html | 8 ++++---- Documentation/functions/Configuration.resolve.html | 4 ++-- Documentation/functions/Integration.Merge.html | 4 ++-- .../functions/Integration.integration.html | 2 +- Documentation/index.html | 6 +++--- Documentation/interfaces/Configuration.Type.html | 2 +- Documentation/interfaces/Integration.Type.html | 2 +- Documentation/interfaces/Option.Type.html | 14 +++++++------- Documentation/modules/Biome.html | 4 ++-- Documentation/modules/Configuration.html | 4 ++-- Documentation/modules/Integration.html | 4 ++-- Documentation/modules/Option.html | 4 ++-- Documentation/types/Biome.Type.html | 2 +- Documentation/variables/Biome.biome.html | 2 +- Documentation/variables/Integration.Default.html | 2 +- Documentation/variables/Option.option.html | 2 +- Source/Function/Integration.ts | 4 ++-- Target/Function/Integration.d.ts | 2 +- Target/Function/Integration.js | 2 +- Target/Variable/Option.js | 2 +- package.json | 4 ++-- 23 files changed, 45 insertions(+), 41 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84fcad9..6c570fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.3 + +- Bug fix + ## 0.0.2 - Cleanup diff --git a/Documentation/functions/Configuration.configuration.html b/Documentation/functions/Configuration.configuration.html index c28980c..272f3e8 100644 --- a/Documentation/functions/Configuration.configuration.html +++ b/Documentation/functions/Configuration.configuration.html @@ -1 +1 @@ -configuration | @playform/biome-astro - v0.0.2

Generated using TypeDoc

\ No newline at end of file +configuration | @playform/biome-astro - v0.0.3

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/functions/Configuration.readFile.html b/Documentation/functions/Configuration.readFile.html index 6d86496..bf9fbc9 100644 --- a/Documentation/functions/Configuration.readFile.html +++ b/Documentation/functions/Configuration.readFile.html @@ -1,4 +1,4 @@ -readFile | @playform/biome-astro - v0.0.2
  • Asynchronously reads the entire contents of a file.

    +readFile | @playform/biome-astro - v0.0.3
    • Asynchronously reads the entire contents of a file.

      If no encoding is specified (using options.encoding), the data is returned as a Buffer object. Otherwise, the data will be a string.

      If options is a string, then it specifies the encoding.

      @@ -20,14 +20,14 @@

      Parameters

      • path: PathLike | FileHandle

        filename or FileHandle

      • Optional options: null | {
            encoding?: null;
            flag?: OpenMode;
        } & Abortable

      Returns Promise<Buffer>

      Fulfills with the contents of the file.

      Since

      v10.0.0

      -
    • Asynchronously reads the entire contents of a file.

      +
    • Asynchronously reads the entire contents of a file.

      Parameters

      • path: PathLike | FileHandle

        A path to a file. If a URL is provided, it must use the file: protocol. If a FileHandle is provided, the underlying file will not be closed automatically.

      • options: {
            encoding: BufferEncoding;
            flag?: OpenMode | undefined;
        } & Abortable | BufferEncoding

        An object that may contain an optional flag. If a flag is not provided, it defaults to 'r'.

        -

      Returns Promise<string>

    • Asynchronously reads the entire contents of a file.

      +

    Returns Promise<string>

  • Asynchronously reads the entire contents of a file.

    Parameters

    • path: PathLike | FileHandle

      A path to a file. If a URL is provided, it must use the file: protocol. If a FileHandle is provided, the underlying file will not be closed automatically.

    • Optional options: null | BufferEncoding | ObjectEncodingOptions & Abortable & {
          flag?: OpenMode | undefined;
      }

      An object that may contain an optional flag. If a flag is not provided, it defaults to 'r'.

      -

    Returns Promise<string | Buffer>

Generated using TypeDoc

\ No newline at end of file +

Returns Promise<string | Buffer>

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/functions/Configuration.resolve.html b/Documentation/functions/Configuration.resolve.html index 10bdda0..481be4c 100644 --- a/Documentation/functions/Configuration.resolve.html +++ b/Documentation/functions/Configuration.resolve.html @@ -1,4 +1,4 @@ -resolve | @playform/biome-astro - v0.0.2
  • The right-most parameter is considered {to}. Other parameters are considered an array of {from}.

    +resolve | @playform/biome-astro - v0.0.3
    • The right-most parameter is considered {to}. Other parameters are considered an array of {from}.

      Starting from leftmost {from} parameter, resolves {to} to an absolute path.

      If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, @@ -6,4 +6,4 @@ and trailing slashes are removed unless the path gets resolved to the root directory.

      Parameters

      • Rest ...paths: string[]

        A sequence of paths or path segments.

      Returns string

      Throws

      if any of the arguments is not a string.

      -

    Generated using TypeDoc

    \ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/functions/Integration.Merge.html b/Documentation/functions/Integration.Merge.html index 602b20f..95ba53e 100644 --- a/Documentation/functions/Integration.Merge.html +++ b/Documentation/functions/Integration.Merge.html @@ -1,2 +1,2 @@ -Merge | @playform/biome-astro - v0.0.2
  • Merges multiple objects of type Ts using the provided merge functions and built-in metadata.

    -

    Type Parameters

    • Ts extends readonly unknown[]

    Parameters

    • Rest ...Objects: Ts

    Returns DeepMergeHKT<Ts, Readonly<{
        DeepMergeArraysURI: "DeepMergeLeafURI";
        DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
        DeepMergeOthersURI: "DeepMergeLeafURI";
        DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
        DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
    }>, Readonly<{
        key: PropertyKey;
        parents: readonly Readonly<Record<PropertyKey, unknown>>[];
    }>>

Generated using TypeDoc

\ No newline at end of file +Merge | @playform/biome-astro - v0.0.3
  • Merges multiple objects of type Ts using the provided merge functions and built-in metadata.

    +

    Type Parameters

    • Ts extends readonly unknown[]

    Parameters

    • Rest ...Objects: Ts

    Returns DeepMergeHKT<Ts, Readonly<{
        DeepMergeArraysURI: "DeepMergeLeafURI";
        DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
        DeepMergeOthersURI: "DeepMergeLeafURI";
        DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
        DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
    }>, Readonly<{
        key: PropertyKey;
        parents: readonly Readonly<Record<PropertyKey, unknown>>[];
    }>>

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/functions/Integration.integration.html b/Documentation/functions/Integration.integration.html index 16f4d81..010d2be 100644 --- a/Documentation/functions/Integration.integration.html +++ b/Documentation/functions/Integration.integration.html @@ -1 +1 @@ -integration | @playform/biome-astro - v0.0.2

Generated using TypeDoc

\ No newline at end of file +integration | @playform/biome-astro - v0.0.3

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/index.html b/Documentation/index.html index 3a0cef4..334e76f 100644 --- a/Documentation/index.html +++ b/Documentation/index.html @@ -1,6 +1,6 @@ -@playform/biome-astro - v0.0.2

@playform/biome-astro - v0.0.2

Astro
Related:


Stars
Compress
🗜️ Compress.


Build
Dependencies
Version
Downloads


Stars
Critters
🦔 Inline CSS.


Build
Dependencies
Version
Downloads

+@playform/biome-astro - v0.0.3

@playform/biome-astro - v0.0.3

Astro
Related:


Stars
Compress
🗜️ Compress.


Build
Dependencies
Version
Downloads


Stars
Critters
🦔 Inline CSS.


Build
Dependencies
Version
Downloads

-

🗻 BiomeAstro

This Astro integration brings Biome tools your Astro +

🗻 BiomeAstro

This Astro integration brings Biome tools to your Astro project.

Biome

@@ -79,4 +79,4 @@
import Biome from "@playform/biome-astro";

export default {
integrations: [
Biome({
Logger: 0,
}),
],
};

Changelog

See CHANGELOG.md for a history of changes to this integration.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/interfaces/Configuration.Type.html b/Documentation/interfaces/Configuration.Type.html index 912d6bd..bf17e58 100644 --- a/Documentation/interfaces/Configuration.Type.html +++ b/Documentation/interfaces/Configuration.Type.html @@ -1 +1 @@ -Type | @playform/biome-astro - v0.0.2
interface Type ((File) => Promise<string>)

Generated using TypeDoc

\ No newline at end of file +Type | @playform/biome-astro - v0.0.3
interface Type ((File) => Promise<string>)

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/interfaces/Integration.Type.html b/Documentation/interfaces/Integration.Type.html index 3e9b39c..83013a7 100644 --- a/Documentation/interfaces/Integration.Type.html +++ b/Documentation/interfaces/Integration.Type.html @@ -1 +1 @@ -Type | @playform/biome-astro - v0.0.2
interface Type ((Option) => AstroIntegration)

Generated using TypeDoc

\ No newline at end of file +Type | @playform/biome-astro - v0.0.3
interface Type ((Option) => AstroIntegration)

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/interfaces/Option.Type.html b/Documentation/interfaces/Option.Type.html index 645d0b9..abc595d 100644 --- a/Documentation/interfaces/Option.Type.html +++ b/Documentation/interfaces/Option.Type.html @@ -1,4 +1,4 @@ -Type | @playform/biome-astro - v0.0.2
interface Type {
    Action?: boolean | default;
    Biome?: boolean | Type;
    Cache?: boolean | default;
    Exclude?: boolean | Type | Type[] | Set<Type>;
    File?: string | boolean | string[];
    Logger?: boolean | Type;
    Path?: boolean | Type | Type[] | Set<Type>;
}

Hierarchy

  • default
    • Type

Properties

Action? +Type | @playform/biome-astro - v0.0.3
interface Type {
    Action?: boolean | default;
    Biome?: boolean | Type;
    Cache?: boolean | default;
    Exclude?: boolean | Type | Type[] | Set<Type>;
    File?: string | boolean | string[];
    Logger?: boolean | Type;
    Path?: boolean | Type | Type[] | Set<Type>;
}

Hierarchy

  • default
    • Type

Properties

Properties

Action?: boolean | default

Action pipe configuration.

-
Biome?: boolean | Type
Cache?: boolean | default

Configuration for the target cache.

+
Biome?: boolean | Type
Cache?: boolean | default

Configuration for the target cache.

Default

{ Search: "./", Folder: "./Cache" }
 
-
Exclude?: boolean | Type | Type[] | Set<Type>

Criteria for excluding files.

-
File?: string | boolean | string[]

File patterns to be matched.

-
Logger?: boolean | Type

Debugging level.

+
Exclude?: boolean | Type | Type[] | Set<Type>

Criteria for excluding files.

+
File?: string | boolean | string[]

File patterns to be matched.

+
Logger?: boolean | Type

Debugging level.

Default

2
 
-
Path?: boolean | Type | Type[] | Set<Type>

Configuration for the target path(s).

+
Path?: boolean | Type | Type[] | Set<Type>

Configuration for the target path(s).

Default

"./Target"
 
-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/modules/Biome.html b/Documentation/modules/Biome.html index c3526ea..a1bde2a 100644 --- a/Documentation/modules/Biome.html +++ b/Documentation/modules/Biome.html @@ -1,3 +1,3 @@ -Biome | @playform/biome-astro - v0.0.2

Index

Type Aliases

Type +Biome | @playform/biome-astro - v0.0.3

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/modules/Configuration.html b/Documentation/modules/Configuration.html index 2c1ed6e..fcc1b13 100644 --- a/Documentation/modules/Configuration.html +++ b/Documentation/modules/Configuration.html @@ -1,5 +1,5 @@ -Configuration | @playform/biome-astro - v0.0.2

Index

Interfaces

Type +Configuration | @playform/biome-astro - v0.0.3

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/modules/Integration.html b/Documentation/modules/Integration.html index 48b107e..83d5333 100644 --- a/Documentation/modules/Integration.html +++ b/Documentation/modules/Integration.html @@ -1,5 +1,5 @@ -Integration | @playform/biome-astro - v0.0.2

Index

Interfaces

Type +Integration | @playform/biome-astro - v0.0.3

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/modules/Option.html b/Documentation/modules/Option.html index 008ed24..a9cb5bd 100644 --- a/Documentation/modules/Option.html +++ b/Documentation/modules/Option.html @@ -1,3 +1,3 @@ -Option | @playform/biome-astro - v0.0.2

Index

Interfaces

Type +Option | @playform/biome-astro - v0.0.3

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/types/Biome.Type.html b/Documentation/types/Biome.Type.html index 4796a81..e3233e3 100644 --- a/Documentation/types/Biome.Type.html +++ b/Documentation/types/Biome.Type.html @@ -1 +1 @@ -Type | @playform/biome-astro - v0.0.2

Generated using TypeDoc

\ No newline at end of file +Type | @playform/biome-astro - v0.0.3

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/variables/Biome.biome.html b/Documentation/variables/Biome.biome.html index 82eeac6..dbeeed4 100644 --- a/Documentation/variables/Biome.biome.html +++ b/Documentation/variables/Biome.biome.html @@ -1 +1 @@ -biome | @playform/biome-astro - v0.0.2

Generated using TypeDoc

\ No newline at end of file +biome | @playform/biome-astro - v0.0.3

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/variables/Integration.Default.html b/Documentation/variables/Integration.Default.html index 98d253a..b1d6ea1 100644 --- a/Documentation/variables/Integration.Default.html +++ b/Documentation/variables/Integration.Default.html @@ -1 +1 @@ -Default | @playform/biome-astro - v0.0.2
Default: Omit<DeepMergeRecordsDefaultHKTInternalProps<[{
    Action: {
        Accomplished: ((__namedParameters) => Promise<string>);
        Changed: ((Plan) => Promise<any>);
        Failed: ((__namedParameters) => Promise<string>);
        Fulfilled: ((__namedParameters) => Promise<string | false>);
        Passed: ((On) => Promise<true>);
        Read: ((__namedParameters) => Promise<string>);
        Wrote: ((__namedParameters) => Promise<any>);
    };
    Cache: {
        Folder: string;
        Search: string;
    };
    Exclude: false;
    File: string;
    Logger: 2;
    Path: string;
}, {
    Action: {
        Accomplished: ((On) => Promise<string>);
        Failed: ((On) => Promise<string>);
        Fulfilled: ((__namedParameters) => Promise<string | false>);
    };
    Biome: any;
}], Readonly<{
    DeepMergeArraysURI: "DeepMergeLeafURI";
    DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
    DeepMergeOthersURI: "DeepMergeLeafURI";
    DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
    DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
}>, Readonly<{
    key: PropertyKey;
    parents: readonly Readonly<Record<PropertyKey, unknown>>[];
}>>, "__proto__">

Generated using TypeDoc

\ No newline at end of file +Default | @playform/biome-astro - v0.0.3
Default: Omit<DeepMergeRecordsDefaultHKTInternalProps<[{
    Action: {
        Accomplished: ((__namedParameters) => Promise<string>);
        Changed: ((Plan) => Promise<any>);
        Failed: ((__namedParameters) => Promise<string>);
        Fulfilled: ((__namedParameters) => Promise<string | false>);
        Passed: ((On) => Promise<true>);
        Read: ((__namedParameters) => Promise<string>);
        Wrote: ((__namedParameters) => Promise<any>);
    };
    Cache: {
        Folder: string;
        Search: string;
    };
    Exclude: false;
    File: string;
    Logger: 2;
    Path: string;
}, {
    Action: {
        Accomplished: ((On) => Promise<string>);
        Failed: ((On) => Promise<string>);
        Fulfilled: ((__namedParameters) => Promise<string | false>);
    };
    Biome: any;
}], Readonly<{
    DeepMergeArraysURI: "DeepMergeLeafURI";
    DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
    DeepMergeOthersURI: "DeepMergeLeafURI";
    DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
    DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
}>, Readonly<{
    key: PropertyKey;
    parents: readonly Readonly<Record<PropertyKey, unknown>>[];
}>>, "__proto__">

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/variables/Option.option.html b/Documentation/variables/Option.option.html index 6f2637a..7f15dd7 100644 --- a/Documentation/variables/Option.option.html +++ b/Documentation/variables/Option.option.html @@ -1 +1 @@ -option | @playform/biome-astro - v0.0.2
option: Omit<DeepMergeRecordsDefaultHKTInternalProps<[{
    Action: {
        Accomplished: ((__namedParameters) => Promise<string>);
        Changed: ((Plan) => Promise<any>);
        Failed: ((__namedParameters) => Promise<string>);
        Fulfilled: ((__namedParameters) => Promise<string | false>);
        Passed: ((On) => Promise<true>);
        Read: ((__namedParameters) => Promise<string>);
        Wrote: ((__namedParameters) => Promise<any>);
    };
    Cache: {
        Folder: string;
        Search: string;
    };
    Exclude: false;
    File: string;
    Logger: 2;
    Path: string;
}, {
    Action: {
        Accomplished: ((On) => Promise<string>);
        Failed: ((On) => Promise<string>);
        Fulfilled: ((__namedParameters) => Promise<string | false>);
    };
    Biome: any;
}], Readonly<{
    DeepMergeArraysURI: "DeepMergeLeafURI";
    DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
    DeepMergeOthersURI: "DeepMergeLeafURI";
    DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
    DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
}>, Readonly<{
    key: PropertyKey;
    parents: readonly Readonly<Record<PropertyKey, unknown>>[];
}>>, "__proto__">

Generated using TypeDoc

\ No newline at end of file +option | @playform/biome-astro - v0.0.3
option: Omit<DeepMergeRecordsDefaultHKTInternalProps<[{
    Action: {
        Accomplished: ((__namedParameters) => Promise<string>);
        Changed: ((Plan) => Promise<any>);
        Failed: ((__namedParameters) => Promise<string>);
        Fulfilled: ((__namedParameters) => Promise<string | false>);
        Passed: ((On) => Promise<true>);
        Read: ((__namedParameters) => Promise<string>);
        Wrote: ((__namedParameters) => Promise<any>);
    };
    Cache: {
        Folder: string;
        Search: string;
    };
    Exclude: false;
    File: string;
    Logger: 2;
    Path: string;
}, {
    Action: {
        Accomplished: ((On) => Promise<string>);
        Failed: ((On) => Promise<string>);
        Fulfilled: ((__namedParameters) => Promise<string | false>);
    };
    Biome: any;
}], Readonly<{
    DeepMergeArraysURI: "DeepMergeLeafURI";
    DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
    DeepMergeOthersURI: "DeepMergeLeafURI";
    DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
    DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
}>, Readonly<{
    key: PropertyKey;
    parents: readonly Readonly<Record<PropertyKey, unknown>>[];
}>>, "__proto__">

Generated using TypeDoc

\ No newline at end of file diff --git a/Source/Function/Integration.ts b/Source/Function/Integration.ts index f3bcd86..a23ac8d 100644 --- a/Source/Function/Integration.ts +++ b/Source/Function/Integration.ts @@ -28,9 +28,9 @@ export default ((...[_Option = {}]: Parameters) => { return { name: "@playform/biome-astro", hooks: { - "astro:build:done": async ({ dir: Dir }) => { + "astro:build:done": async ({ dir: Directory }) => { if (!Paths.size) { - Paths.add(Dir); + Paths.add(Directory); } const _Biome = await ( diff --git a/Target/Function/Integration.d.ts b/Target/Function/Integration.d.ts index 0dce117..16cd4f5 100644 --- a/Target/Function/Integration.d.ts +++ b/Target/Function/Integration.d.ts @@ -25,4 +25,4 @@ export declare const Default: Omit<{} & { }, "__proto__">; Exclude: false; }, "__proto__">; -export declare const Merge: import("typescript-esbuild/Target/Interface/Merge.js").default; +export declare const Merge: import("@playform/build/Target/Interface/Merge.js").default; diff --git a/Target/Function/Integration.js b/Target/Function/Integration.js index c925943..440e1cd 100644 --- a/Target/Function/Integration.js +++ b/Target/Function/Integration.js @@ -1 +1 @@ -var d=(...[o={}])=>{Object.entries(o).forEach(([t,a])=>Object.defineProperty(o,t,{value:a===!0?n[t]:o[t]}));const{Path:r,Cache:p,Logger:c,Exclude:m,Action:y,Biome:f}=s(n,o),i=new Set;return typeof r<"u"&&(Array.isArray(r)||r instanceof Set)&&r.forEach(t=>i.add(t)),{name:"@playform/biome-astro",hooks:{"astro:build:done":async({dir:t})=>{i.size||i.add(t);const a=await(await import("@biomejs/js-api")).Biome.create({distribution:(await import("@biomejs/js-api")).Distribution.NODE}),u=s(y,{Wrote:async e=>{try{return a.formatContent(e.Buffer.toString(),{filePath:(await import("path")).resolve(e.Input)}).content}catch{return e.Buffer}}});try{typeof f=="object"&&a&&(f.$schema=void 0,a.applyConfiguration(f))}catch(e){console.log(e)}for(const e of i)await(await(await(await new(await import("@playform/file-pipe")).default(p,c).In(e)).By("**/*.{js,mjs,cjs,ts,json}")).Not(m)).Pipe(u)}}}};const{default:n}=await import("../Variable/Option.js"),{default:s}=await import("typescript-esbuild/Target/Function/Merge.js");export{n as Default,s as Merge,d as default}; +var d=(...[o={}])=>{Object.entries(o).forEach(([t,a])=>Object.defineProperty(o,t,{value:a===!0?n[t]:o[t]}));const{Path:r,Cache:p,Logger:c,Exclude:m,Action:y,Biome:f}=s(n,o),i=new Set;return typeof r<"u"&&(Array.isArray(r)||r instanceof Set)&&r.forEach(t=>i.add(t)),{name:"@playform/biome-astro",hooks:{"astro:build:done":async({dir:t})=>{i.size||i.add(t);const a=await(await import("@biomejs/js-api")).Biome.create({distribution:(await import("@biomejs/js-api")).Distribution.NODE}),u=s(y,{Wrote:async e=>{try{return a.formatContent(e.Buffer.toString(),{filePath:(await import("path")).resolve(e.Input)}).content}catch{return e.Buffer}}});try{typeof f=="object"&&a&&(f.$schema=void 0,a.applyConfiguration(f))}catch(e){console.log(e)}for(const e of i)await(await(await(await new(await import("@playform/file-pipe")).default(p,c).In(e)).By("**/*.{js,mjs,cjs,ts,json}")).Not(m)).Pipe(u)}}}};const{default:n}=await import("../Variable/Option.js"),{default:s}=await import("@playform/build/Target/Function/Merge.js");export{n as Default,s as Merge,d as default}; diff --git a/Target/Variable/Option.js b/Target/Variable/Option.js index 40890ef..72af8cc 100644 --- a/Target/Variable/Option.js +++ b/Target/Variable/Option.js @@ -1 +1 @@ -var a=(await import("typescript-esbuild/Target/Function/Merge.js")).default((await import("@playform/file-pipe/Target/Variable/Option.js")).default,{Biome:(await import("./Biome.js")).default,Action:{Failed:async t=>`Error: Cannot format file ${t.Input}!`,Accomplished:async t=>`Formatted ${t.Input} in ${t.Output}.`,Fulfilled:async({File:t})=>t>0?`Successfully formatted a total of ${t} JavaScript and TypeScript ${t===1?"file":"files"}.`:!1}});export{a as default}; +var a=(await import("@playform/build/Target/Function/Merge.js")).default((await import("@playform/file-pipe/Target/Variable/Option.js")).default,{Biome:(await import("./Biome.js")).default,Action:{Failed:async t=>`Error: Cannot format file ${t.Input}!`,Accomplished:async t=>`Formatted ${t.Input} in ${t.Output}.`,Fulfilled:async({File:t})=>t>0?`Successfully formatted a total of ${t} JavaScript and TypeScript ${t===1?"file":"files"}.`:!1}});export{a as default}; diff --git a/package.json b/package.json index 7fc6c89..80f650c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@playform/biome-astro", - "version": "0.0.2", + "version": "0.0.3", "private": false, "description": "🗻 Biome Format.", "keywords": [ @@ -36,7 +36,7 @@ "@biomejs/js-api": "nightly", "@biomejs/wasm-nodejs": "1.6.3", "deepmerge-ts": "5.1.0", - "@playform/file-pipe": "0.0.1" + "@playform/file-pipe": "0.0.2" }, "devDependencies": { "astro": "4.5.12",