Skip to content

Commit

Permalink
fix(rules): add Shopify
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 23, 2023
1 parent ae48c62 commit 8aee041
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/saas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import './placekit.js';
import './prismacloud.js';
import './resend.js';
import './sentry.js';
import './shopify.js';
import './slack.js';
import './snyk.js';
import './sqreen.js';
10 changes: 10 additions & 0 deletions src/rules/saas/shopify.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { register } from '../../register.js';

register({
tech: 'shopify',
name: 'Shopify',
type: 'saas',
dependencies: [
{ type: 'npm', name: /^@shopify\//, example: '@shopify/shopify-api' },
],
});
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 @@ -86,6 +86,7 @@ exports[`npm > should match everything 1`] = `
"scaleway",
"sentry",
"sequelize",
"shopify",
"slack",
"snyk",
"socketio",
Expand Down Expand Up @@ -379,6 +380,11 @@ exports[`npm > should match everything 2`] = `
"@sentry/browser",
"0.0.0",
],
[
"npm",
"@shopify/shopify-api",
"0.0.0",
],
[
"npm",
"@slack/web-api",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export type AllowedKeys =
| 'sentry'
| 'sequelize'
| 'shell'
| 'shopify'
| 'slack'
| 'snowflake'
| 'snyk'
Expand Down

0 comments on commit 8aee041

Please sign in to comment.