diff --git a/packages/gatsby-plugin-typescript/.snyk b/packages/gatsby-plugin-typescript/.snyk new file mode 100644 index 0000000000000..433344fc007e9 --- /dev/null +++ b/packages/gatsby-plugin-typescript/.snyk @@ -0,0 +1,14 @@ +# 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: + SNYK-JS-LODASH-567746: + - '@babel/preset-typescript > @babel/plugin-transform-typescript > @babel/helper-create-class-features-plugin > @babel/helper-replace-supers > @babel/traverse > lodash': + patched: '2020-05-01T05:38:23.324Z' + - '@babel/preset-typescript > @babel/plugin-transform-typescript > @babel/helper-create-class-features-plugin > @babel/helper-replace-supers > @babel/traverse > @babel/generator > lodash': + patched: '2020-05-01T05:38:23.324Z' + - '@babel/preset-typescript > @babel/plugin-transform-typescript > @babel/helper-create-class-features-plugin > @babel/helper-replace-supers > @babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash': + patched: '2020-05-01T05:38:23.324Z' + - '@babel/preset-typescript > @babel/plugin-transform-typescript > @babel/helper-create-class-features-plugin > @babel/helper-replace-supers > @babel/traverse > @babel/helper-function-name > @babel/template > @babel/types > lodash': + patched: '2020-05-01T05:38:23.324Z' diff --git a/packages/gatsby-plugin-typescript/package.json b/packages/gatsby-plugin-typescript/package.json index 2b4fac589cd5a..8493e4d80ce86 100644 --- a/packages/gatsby-plugin-typescript/package.json +++ b/packages/gatsby-plugin-typescript/package.json @@ -12,7 +12,8 @@ "dependencies": { "@babel/preset-typescript": "^7.0.0", "@babel/runtime": "^7.0.0", - "babel-plugin-remove-graphql-queries": "^2.0.2-rc.3" + "babel-plugin-remove-graphql-queries": "^2.0.2-rc.3", + "snyk": "^1.316.1" }, "devDependencies": { "@babel/cli": "^7.0.0", @@ -33,7 +34,9 @@ "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-typescript", "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", - "prepare": "cross-env NODE_ENV=production npm run build", - "watch": "babel -w src --out-dir . --ignore **/__tests__" - } + "prepare": "npm run snyk-protect && cross-env NODE_ENV=production npm run build", + "watch": "babel -w src --out-dir . --ignore **/__tests__", + "snyk-protect": "snyk protect" + }, + "snyk": true }