diff --git a/.snyk b/.snyk new file mode 100644 index 00000000000..923a68ea057 --- /dev/null +++ b/.snyk @@ -0,0 +1,18 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - yeoman-environment > lodash: + patched: '2019-07-03T22:12:13.089Z' + - yeoman-environment > grouped-queue > lodash: + patched: '2019-07-03T22:12:13.089Z' + - yeoman-environment > inquirer > lodash: + patched: '2019-07-03T22:12:13.089Z' + - yeoman-generator > gruntfile-editor > lodash: + patched: '2019-07-03T22:12:13.089Z' + - yeoman-generator > yeoman-environment > grouped-queue > lodash: + patched: '2019-07-03T22:12:13.089Z' + - yeoman-generator > gruntfile-editor > ast-query > lodash: + patched: '2019-07-03T22:12:13.089Z' diff --git a/package.json b/package.json index 5ffa678660c..bffdcb97224 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ "main": "Libraries/react-native-windows/react-native-windows.js", "scripts": { "test": "jasmine", - "flow-check": "flow check" + "flow-check": "flow check", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "files": [ "Libraries", @@ -47,9 +49,11 @@ "uuid": "^2.0.1", "xml-parser": "^1.2.1", "yeoman-environment": "^1.5.3", - "yeoman-generator": "^0.21.2" + "yeoman-generator": "^0.21.2", + "snyk": "^1.189.0" }, "rnpm": { "plugin": "./local-cli/index.js" - } + }, + "snyk": true }