Skip to content

Commit

Permalink
fix(rules): add Twilio
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 3, 2023
1 parent 9f6f69f commit 40b1f9f
Show file tree
Hide file tree
Showing 5 changed files with 25 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 @@ -159,6 +159,7 @@ exports[`all > should match everything 1`] = `
"terraform",
"terragrunt",
"travisci",
"twilio",
"typescript",
"vercel",
"vercel.ai",
Expand Down
1 change: 1 addition & 0 deletions src/rules/saas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import './stripe.js';
import './snyk.js';
import './splunk.js';
import './sqreen.js';
import './twilio.js';
import './wiz.js';
import './zendesk.js';
import './zuora.js';
Expand Down
11 changes: 11 additions & 0 deletions src/rules/saas/twilio.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { register } from '../../register.js';

register({
tech: 'twilio',
name: 'Twilio',
type: 'saas',
dependencies: [
{ type: 'npm', name: 'twilio' },
{ type: 'npm', name: /^@twilio\//, example: '@twilio/cli-core' },
],
});
11 changes: 11 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ exports[`npm > should match everything 1`] = `
"supabase.postgres",
"supabase.storage",
"tailwind",
"twilio",
"typescript",
"vercel",
"vercel.ai",
Expand Down Expand Up @@ -465,6 +466,11 @@ exports[`npm > should match everything 2`] = `
"@supabase/supabase.js",
"0.0.0",
],
[
"npm",
"@twilio/cli-core",
"0.0.0",
],
[
"npm",
"@vercel/ai",
Expand Down Expand Up @@ -795,6 +801,11 @@ exports[`npm > should match everything 2`] = `
"tailwindcss",
"0.0.0",
],
[
"npm",
"twilio",
"0.0.0",
],
[
"npm",
"typescript",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export type AllowedKeys =
| 'terragrunt'
| 'traefik'
| 'travisci'
| 'twilio'
| 'typescript'
| 'vercel.ai'
| 'vercel.analytics'
Expand Down

0 comments on commit 40b1f9f

Please sign in to comment.