diff --git a/.snyk b/.snyk new file mode 100644 index 000000000000..3e141d833ac6 --- /dev/null +++ b/.snyk @@ -0,0 +1,3 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.8.0 +patch: {} diff --git a/package.json b/package.json index 8c311a42db65..f79022f313ab 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,9 @@ "lint:staged": "lint-staged", "deps": "npm-check -s", "deps:update": "npm-check -u", - "prepublishOnly": "npm run build" + "prepublishOnly": "npm run build", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "lint-staged": { "*.js": [ @@ -189,9 +191,11 @@ "unist-builder": "^1.0.2", "unist-util-visit-parents": "^1.1.1", "url": "^0.11.0", - "uuid": "^3.1.0" + "uuid": "^3.1.0", + "snyk": "^1.49.3" }, "optionalDependencies": { "fsevents": "^1.0.14" - } + }, + "snyk": true }