Skip to content

Commit

Permalink
fix(rules): add Payload
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Nov 7, 2023
1 parent 03e9e48 commit 0a6f7f5
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 @@ -303,6 +303,7 @@ exports[`all > should match everything 1`] = `
"ovh.vps",
"pagerduty",
"papertrail",
"payloadcms",
"paypal",
"percona",
"php",
Expand Down
1 change: 1 addition & 0 deletions src/rules/framework/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ import './ghost.js';
import './hexojs.js';
import './hugo.js';
import './jekyll.js';
import './payloadcms.js';
import './shopify.hydrogen.js';
11 changes: 11 additions & 0 deletions src/rules/framework/payloadcms.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { register } from '../../register.js';

register({
tech: 'payloadcms',
name: 'Payload',
type: 'framework',
dependencies: [
{ type: 'npm', name: 'payload' },
{ type: 'npm', name: '@payload/plugin-seo' },
],
});
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 @@ -185,6 +185,7 @@ exports[`npm > should match everything 1`] = `
"ovh",
"pagerduty",
"papertrail",
"payloadcms",
"paypal",
"pirschanalytics",
"placekit",
Expand Down Expand Up @@ -1237,6 +1238,11 @@ exports[`npm > should match everything 2`] = `
"@pagerduty/pdjs",
"0.0.0",
],
[
"npm",
"@payload/plugin-seo",
"0.0.0",
],
[
"npm",
"@paypal/paypal-js",
Expand Down Expand Up @@ -2197,6 +2203,11 @@ exports[`npm > should match everything 2`] = `
"opsgenie-sdk",
"0.0.0",
],
[
"npm",
"payload",
"0.0.0",
],
[
"npm",
"paypal-rest-sdk",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ export type AllowedKeys =
| 'ovh'
| 'pagerduty'
| 'papertrail'
| 'payloadcms'
| 'paypal'
| 'percona'
| 'php'
Expand Down

0 comments on commit 0a6f7f5

Please sign in to comment.