diff --git a/examples/using-typescript/package.json b/examples/using-typescript/package.json index 707ec2a69d5b3..99439824527ae 100644 --- a/examples/using-typescript/package.json +++ b/examples/using-typescript/package.json @@ -7,7 +7,9 @@ "scripts": { "start": "gatsby develop", "develop": "gatsby develop", - "build": "gatsby build" + "build": "gatsby build", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "@types/node": "^8.0.7", @@ -15,6 +17,8 @@ "@types/react-dom": "0.14.23", "gatsby": "latest", "gatsby-link": "latest", - "gatsby-plugin-typescript": "latest" - } + "gatsby-plugin-typescript": "latest", + "snyk": "^1.319.0" + }, + "snyk": true }