Skip to content

Commit

Permalink
fix(rules): add Supabase Postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 23, 2023
1 parent d4ea9a1 commit 9bd56ce
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ import './postgres.js';
import './redis.js';
import './snowflake.js';
import './sqlite.js';
import './supabase.postgres.js';
13 changes: 13 additions & 0 deletions src/rules/db/supabase.postgres.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { register } from '../../register.js';

register({
tech: 'supabase.postgres',
name: 'Supabase Postgres',
type: 'db',
dependencies: [
{ type: 'npm', name: '@supabase/postgrest-js' },
{ type: 'npm', name: '@supabase/pg-admin-js' },
{ type: 'npm', name: '@supabase/postgres-meta' },
{ type: 'npm', name: '@supabase/realtime-js' },
],
});
21 changes: 21 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ exports[`npm > should match everything 1`] = `
"storybook",
"strapi",
"supabase",
"supabase.postgres",
"supabase.storage",
"tailwind",
"typescript",
Expand Down Expand Up @@ -403,6 +404,26 @@ exports[`npm > should match everything 2`] = `
"@strapi/strapi",
"0.0.0",
],
[
"npm",
"@supabase/pg-admin-js",
"0.0.0",
],
[
"npm",
"@supabase/postgres-meta",
"0.0.0",
],
[
"npm",
"@supabase/postgrest-js",
"0.0.0",
],
[
"npm",
"@supabase/realtime-js",
"0.0.0",
],
[
"npm",
"@supabase/storage-js",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export type AllowedKeys =
| 'strapi'
| 'styleci'
| 'stylelint'
| 'supabase.postgres'
| 'supabase.storage'
| 'supabase'
| 'swift'
Expand Down

0 comments on commit 9bd56ce

Please sign in to comment.