diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..53e5143 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - merge-dirs > inquirer > lodash: + patched: '2018-12-13T22:19:49.578Z' diff --git a/package.json b/package.json index b948410..aa00396 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "install": "npm run compile", "build:doc": "jsdoc2md --files './decorators.ts' --configure jsdoc2md.json > method-docs.md && npm run build:merge", "build:merge": "concat -o README.md ./general-readme.md ./method-docs.md", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "neilkalman@gmail.com", "license": "MIT", @@ -27,7 +29,8 @@ "mkdirp": "^0.5.1", "pkginfo": "^0.4.1", "prettyjson": "^1.2.1", - "typescript": "^2.9.2" + "typescript": "^2.9.2", + "snyk": "^1.117.1" }, "bin": { "cli-lit": "bin/cli-lit.js" @@ -66,5 +69,6 @@ "generator", "typescript", "automation" - ] + ], + "snyk": true }