Skip to content

Commit 8b4ea48

Browse files
CopilotAFCMS
andcommitted
Revert to inline imports and exclude lint rules instead
Co-authored-by: AFCMS <[email protected]>
1 parent be98bf5 commit 8b4ea48

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

supabase/functions/createPost/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { createClient } from "@supabase/supabase-js";
1+
import "jsr:@supabase/functions-js/edge-runtime.d.ts";
2+
import { createClient } from "jsr:@supabase/supabase-js@2";
23
import { corsHeaders } from "../_shared/cors.ts";
34

45
Deno.serve(async (req) => {

supabase/functions/deno.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
"lint-functions": "deno lint */*.ts",
66
"test-functions": "deno test */*.test.ts"
77
},
8-
"imports": {
9-
"@supabase/supabase-js": "jsr:@supabase/supabase-js@2"
8+
"imports": {},
9+
"lint": {
10+
"rules": {
11+
"exclude": ["no-import-prefix", "no-unversioned-import"]
12+
}
1013
},
1114
"unstable": ["net", "http"],
1215
"nodeModulesDir": "auto"

0 commit comments

Comments
 (0)