diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..10bb340 --- /dev/null +++ b/.snyk @@ -0,0 +1,11 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - '@pattern-lab/patternlab-node > @pattern-lab/live-server > morgan > debug': + patched: '2019-05-18T02:53:42.592Z' + 'npm:ms:20170412': + - '@pattern-lab/patternlab-node > @pattern-lab/live-server > morgan > debug > ms': + patched: '2019-05-18T02:53:42.592Z' diff --git a/package.json b/package.json index 0f5ba57..64c37a9 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "@pattern-lab/patternengine-node-mustache": "^2.0.0-alpha.1", "@pattern-lab/patternlab-node": "^3.0.0-alpha.5", "@pattern-lab/styleguidekit-assets-default": "^4.0.0-alpha.2", - "@pattern-lab/styleguidekit-mustache-default": "^4.0.0-alpha.1" + "@pattern-lab/styleguidekit-mustache-default": "^4.0.0-alpha.1", + "snyk": "^1.165.1" }, "keywords": [ "Pattern Lab", @@ -24,10 +25,13 @@ "scripts": { "build": "node ./scripts/build.js", "help": "node ./scripts/help.js", - "serve": "node ./scripts/serve.js" + "serve": "node ./scripts/serve.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "license": "MIT", "engines": { "node": ">=6.0" - } + }, + "snyk": true }