Skip to content

Commit 648cef3

Browse files
committed
added snyk
1 parent 4545b51 commit 648cef3

File tree

3 files changed

+1337
-47
lines changed

3 files changed

+1337
-47
lines changed

.snyk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.13.5
3+
ignore: {}
4+
patch: {}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
"start:debug": "nest start --debug --watch",
1818
"start:prod": "node dist/apps/gateway-admin/main.js",
1919
"lint": "tslint -p tsconfig.json -c tslint.json",
20-
"test": "jest",
20+
"test": "snyk test && jest",
2121
"test:watch": "jest --watch",
2222
"test:cov": "jest --coverage",
2323
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
2424
"test:e2e": "jest --config ./apps/gateway-admin/test/jest-e2e.json",
2525
"kompose": "kompose convert -o deployment.yaml",
26-
"docs": "npx compodoc --theme material --output docs -p tsconfig.json -s"
26+
"docs": "npx compodoc --theme material --output docs -p tsconfig.json -s",
27+
"snyk-protect": "snyk protect",
28+
"prepare": "yarn run snyk-protect"
2729
},
2830
"dependencies": {
2931
"@apollo/gateway": "^0.10.6",
@@ -95,6 +97,7 @@
9597
"@types/supertest": "^2.0.8",
9698
"jest": "^24.9.0",
9799
"prettier": "^1.18.2",
100+
"snyk": "^1.236.1",
98101
"supertest": "^4.0.2",
99102
"ts-jest": "^24.1.0",
100103
"ts-loader": "^6.1.1",

0 commit comments

Comments
 (0)