Skip to content

Commit

Permalink
fix(rules): add Gitbook
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 3, 2023
1 parent 37b753b commit 8a74016
Show file tree
Hide file tree
Showing 5 changed files with 17 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 @@ -71,6 +71,7 @@ exports[`all > should match everything 1`] = `
"gcp.sql",
"gcp.translate",
"gcp.vision",
"gitbook",
"github",
"github.actions",
"github.pages",
Expand Down
8 changes: 8 additions & 0 deletions src/rules/saas/gitbook.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'gitbook',
name: 'Gitbook',
type: 'saas',
dependencies: [{ type: 'npm', name: /^@gitbook\//, example: '@gitbook/api' }],
});
1 change: 1 addition & 0 deletions src/rules/saas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import './datadog.js';
import './deferrun.js';
import './discord.js';
import './dropbox.js';
import './gitbook.js';
import './github.js';
import './hubspot.js';
import './huggingface.js';
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 @@ -50,6 +50,7 @@ exports[`npm > should match everything 1`] = `
"gcp.sql",
"gcp.translate",
"gcp.vision",
"gitbook",
"github",
"hotjar",
"huggingface",
Expand Down Expand Up @@ -217,6 +218,11 @@ exports[`npm > should match everything 2`] = `
"@firebase/auth",
"0.0.0",
],
[
"npm",
"@gitbook/api",
"0.0.0",
],
[
"npm",
"@google-cloud/aiplatform",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export type AllowedKeys =
| 'gcp.translate'
| 'gcp.vision'
| 'gcp'
| 'gitbook'
| 'github.actions'
| 'github.pages'
| 'github'
Expand Down

0 comments on commit 8a74016

Please sign in to comment.