diff --git a/examples/gatsbygram/.snyk b/examples/gatsbygram/.snyk new file mode 100644 index 0000000000000..683bbaf44c751 --- /dev/null +++ b/examples/gatsbygram/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - gatsby > webpack-configurator > lodash: + patched: '2020-03-08T07:48:27.836Z' diff --git a/examples/gatsbygram/package.json b/examples/gatsbygram/package.json index f1b8ec42b4cd3..320fd686ede3e 100644 --- a/examples/gatsbygram/package.json +++ b/examples/gatsbygram/package.json @@ -5,7 +5,7 @@ "version": "1.0.0", "author": "Kyle Mathews ", "dependencies": { - "gatsby": "^1.9.52", + "gatsby": "^2.0.0", "gatsby-image": "^1.0.39", "gatsby-link": "^1.6.20", "gatsby-plugin-glamor": "^1.6.8", @@ -29,7 +29,8 @@ "request": "^2.79.0", "slug": "^0.9.1", "typeface-space-mono": "^0.0.22", - "typography": "^0.15.0" + "typography": "^0.15.0", + "snyk": "^1.298.1" }, "keywords": [ "gatsby" @@ -42,6 +43,9 @@ "develop": "gatsby develop", "dev": "gatsby develop", "build": "gatsby build", - "deploy": "gatsby build --prefix-paths && gh-pages -d public" - } + "deploy": "gatsby build --prefix-paths && gh-pages -d public", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }