Skip to content

Commit 4b67995

Browse files
committed
chore(edge-worker): reorganize project structure and update configuration paths
Restructured SQL migrations and function source files, updated project configuration paths for Supabase and Deno environments
1 parent bafd2e2 commit 4b67995

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

pkgs/edge-worker/project.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@
5959
"options": {
6060
"cwd": "pkgs/edge-worker",
6161
"commands": [
62-
"rm -r supabase/migrations",
63-
"mkdir -p supabase/migrations",
64-
"cp ../edge-worker/sql/*.sql supabase/migrations/",
62+
"rm supabase/migrations/*.sql",
63+
"cp migrations/*.sql supabase/migrations/",
6564
"supabase db reset"
6665
],
6766
"parallel": false
@@ -72,9 +71,9 @@
7271
"options": {
7372
"cwd": "pkgs/edge-worker",
7473
"commands": [
75-
"rm -f ./supabase/functions/_src/*.ts",
76-
"cp ../edge-worker/src/*.ts ./supabase/functions/_src/",
77-
"cp ../edge-worker/deno.* ./supabase/functions/_src/"
74+
"rm supabase/functions/_src/*.ts",
75+
"cp src/*.ts ./supabase/functions/_src/",
76+
"cp deno.* ./supabase/functions/_src/"
7877
],
7978
"parallel": false
8079
}
@@ -84,7 +83,9 @@
8483
"executor": "nx:run-commands",
8584
"options": {
8685
"cwd": "pkgs/edge-worker",
87-
"commands": ["supabase functions serve --env-file supabase/.env"],
86+
"commands": [
87+
"supabase functions serve --env-file supabase/functions/.env"
88+
],
8889
"parallel": false
8990
}
9091
},
@@ -94,7 +95,7 @@
9495
"options": {
9596
"cwd": "pkgs/edge-worker",
9697
"commands": [
97-
"deno test --allow-all --env-file=supabase/.env tests/unit/"
98+
"deno test --allow-all --env-file=supabase/functions/.env tests/unit/"
9899
],
99100
"parallel": false
100101
}

pkgs/edge-worker/supabase/migrations/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)