diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5d88a96..a4b8611 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: with: deno-version: vx.x.x - name: Typecheck - run: deno check mod.ts + run: deno check src/ - name: Unit Test run: deno test src/ - name: e2e Test diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f7f068c..f57efe8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,6 +18,8 @@ Each provider consists of: - `src/types.ts` - `src/extract.ts` - `src/transform.ts` + - `src/async.ts` + - `deno.jsonc` ## Core Concepts and Utilities diff --git a/deno.jsonc b/deno.jsonc index 402b1f3..d4df2ef 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -4,6 +4,7 @@ "exports": { ".": "./mod.ts", "./async": "./src/async.ts", + "./providers/appwrite": "./src/providers/appwrite.ts", "./providers/astro": "./src/providers/astro.ts", "./providers/builder.io": "./src/providers/builder.io.ts", "./providers/bunny": "./src/providers/bunny.ts", @@ -57,4 +58,4 @@ ] }, "license": "MIT" -} +} \ No newline at end of file diff --git a/src/async.ts b/src/async.ts index 0a0c8f0..0ce472b 100644 --- a/src/async.ts +++ b/src/async.ts @@ -13,6 +13,7 @@ type AsyncProviderMap = { [T in ImageCdn]: () => Promise>; }; const asyncProviderMap: AsyncProviderMap = { + appwrite: () => import("./providers/appwrite.ts"), astro: () => import("./providers/astro.ts"), "builder.io": () => import("./providers/builder.io.ts"), bunny: () => import("./providers/bunny.ts"), diff --git a/src/types.ts b/src/types.ts index 8c414f4..92e20ad 100644 --- a/src/types.ts +++ b/src/types.ts @@ -62,6 +62,7 @@ export type ImageCdn = | "appwrite"; export const SupportedProviders: Record = { + appwrite: "Appwrite", astro: "Astro image service", "builder.io": "Builder.io", bunny: "Bunny.net", @@ -88,7 +89,6 @@ export const SupportedProviders: Record = { uploadcare: "Uploadcare", vercel: "Vercel", wordpress: "WordPress", - appwrite: "Appwrite", } as const; export type OperationFormatter = (