Skip to content

Commit

Permalink
fix(rules): add Vercel AI
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 2, 2023
1 parent 9e1dd14 commit 66a0e7a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ exports[`all > should match everything 1`] = `
"travisci",
"typescript",
"vercel",
"vercel.ai",
"vercel.analytics",
"vite",
"vue",
Expand Down
1 change: 1 addition & 0 deletions src/rules/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import './gcp.maps.js';
import './gcp.speech.js';
import './gcp.translate.js';
import './gcp.vision.js';
import './vercel.ai.js';
8 changes: 8 additions & 0 deletions src/rules/api/vercel.ai.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'vercel.ai',
name: 'Vercel AI',
type: 'api',
dependencies: [{ type: 'npm', name: '@vercel/ai' }],
});
1 change: 1 addition & 0 deletions src/rules/hosting/vercel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ register({
files: ['.vercel', 'vercel.json'],
dependencies: [
{ type: 'npm', name: 'vercel' },
{ type: 'npm', name: /^@vercel\//, example: '@vercel/ai' },
{ type: 'terraform', name: 'registry.terraform.io/vercel/vercel' },
{ type: 'rust', name: /^vercel_/, example: 'vercel_runtime' },
],
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ exports[`npm > should match everything 1`] = `
"tailwind",
"typescript",
"vercel",
"vercel.ai",
"vercel.analytics",
"vite",
"vue",
Expand Down Expand Up @@ -453,6 +454,11 @@ exports[`npm > should match everything 2`] = `
"@supabase/supabase.js",
"0.0.0",
],
[
"npm",
"@vercel/ai",
"0.0.0",
],
[
"npm",
"@vercel/analytics",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export type AllowedKeys =
| 'traefik'
| 'travisci'
| 'typescript'
| 'vercel.ai'
| 'vercel.analytics'
| 'vercel'
| 'vite'
Expand Down

0 comments on commit 66a0e7a

Please sign in to comment.