Skip to content

Commit 74ce895

Browse files
authored
fix: correct exports (#163)
1 parent 7dccfb0 commit 74ce895

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
with:
1515
deno-version: vx.x.x
1616
- name: Typecheck
17-
run: deno check mod.ts
17+
run: deno check src/
1818
- name: Unit Test
1919
run: deno test src/
2020
- name: e2e Test

CONTRIBUTING.md

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Each provider consists of:
1818
- `src/types.ts`
1919
- `src/extract.ts`
2020
- `src/transform.ts`
21+
- `src/async.ts`
22+
- `deno.jsonc`
2123

2224
## Core Concepts and Utilities
2325

deno.jsonc

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"exports": {
55
".": "./mod.ts",
66
"./async": "./src/async.ts",
7+
"./providers/appwrite": "./src/providers/appwrite.ts",
78
"./providers/astro": "./src/providers/astro.ts",
89
"./providers/builder.io": "./src/providers/builder.io.ts",
910
"./providers/bunny": "./src/providers/bunny.ts",
@@ -57,4 +58,4 @@
5758
]
5859
},
5960
"license": "MIT"
60-
}
61+
}

src/async.ts

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ type AsyncProviderMap = {
1313
[T in ImageCdn]: () => Promise<ProviderModule<T>>;
1414
};
1515
const asyncProviderMap: AsyncProviderMap = {
16+
appwrite: () => import("./providers/appwrite.ts"),
1617
astro: () => import("./providers/astro.ts"),
1718
"builder.io": () => import("./providers/builder.io.ts"),
1819
bunny: () => import("./providers/bunny.ts"),

src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export type ImageCdn =
6262
| "appwrite";
6363

6464
export const SupportedProviders: Record<ImageCdn, string> = {
65+
appwrite: "Appwrite",
6566
astro: "Astro image service",
6667
"builder.io": "Builder.io",
6768
bunny: "Bunny.net",
@@ -88,7 +89,6 @@ export const SupportedProviders: Record<ImageCdn, string> = {
8889
uploadcare: "Uploadcare",
8990
vercel: "Vercel",
9091
wordpress: "WordPress",
91-
appwrite: "Appwrite",
9292
} as const;
9393

9494
export type OperationFormatter<T extends Operations = Operations> = (

0 commit comments

Comments
 (0)