diff --git a/examples/using-styletron/.snyk b/examples/using-styletron/.snyk new file mode 100644 index 0000000000000..b298585a0a0db --- /dev/null +++ b/examples/using-styletron/.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:hoek:20180212': + - gatsby > joi2gql > hoek: + patched: '2020-04-15T06:32:02.124Z' diff --git a/examples/using-styletron/package.json b/examples/using-styletron/package.json index e9287cb240095..196c31e01aa3b 100644 --- a/examples/using-styletron/package.json +++ b/examples/using-styletron/package.json @@ -8,7 +8,8 @@ "gatsby": "^2.0.0", "gatsby-plugin-styletron": "^3.0.0", "react": "^16.4.0", - "react-dom": "^16.4.0" + "react-dom": "^16.4.0", + "snyk": "^1.305.1" }, "keywords": [ "gatsby" @@ -18,6 +19,9 @@ "scripts": { "develop": "gatsby develop", "build": "gatsby build", - "start": "npm run develop" - } + "start": "npm run develop", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }