diff --git a/packages/@vue/cli-plugin-babel/.snyk b/packages/@vue/cli-plugin-babel/.snyk new file mode 100644 index 0000000000..2ca5fc7302 --- /dev/null +++ b/packages/@vue/cli-plugin-babel/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.22.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - '@babel/core > @babel/helpers > @babel/traverse > @babel/helper-function-name > @babel/helper-get-function-arity > @babel/types > lodash': + patched: '2022-03-25T22:17:49.744Z' diff --git a/packages/@vue/cli-plugin-babel/package.json b/packages/@vue/cli-plugin-babel/package.json index ca3bc4cea0..819517918c 100644 --- a/packages/@vue/cli-plugin-babel/package.json +++ b/packages/@vue/cli-plugin-babel/package.json @@ -26,7 +26,8 @@ "babel-loader": "^8.0.6", "cache-loader": "^4.1.0", "thread-loader": "^2.1.3", - "webpack": "^4.0.0" + "webpack": "^4.0.0", + "@snyk/protect": "latest" }, "peerDependencies": { "@vue/cli-service": "^3.0.0 || ^4.0.0-0" @@ -36,5 +37,10 @@ }, "publishConfig": { "access": "public" - } + }, + "scripts": { + "prepare": "yarn run snyk-protect", + "snyk-protect": "snyk-protect" + }, + "snyk": true }