diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..95199a2 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - browser-sync > easy-extender > lodash: + patched: '2018-07-04T02:36:48.205Z' diff --git a/package.json b/package.json index 0fe407a..f6bdb8b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ }, "scripts": { "lint": "gulp eslint stylelint", - "prepush-msg": "echo 'Running lint task...' && exit 0" + "prepush-msg": "echo 'Running lint task...' && exit 0", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "pre-push": [ "prepush-msg", @@ -90,6 +92,8 @@ "vinyl-buffer": "^1.0.0", "vinyl-source-stream": "^1.1.0", "watchify": "^3.9.0", - "yargs": "^8.0.2" - } + "yargs": "^8.0.2", + "snyk": "^1.88.1" + }, + "snyk": true }