diff --git a/npm-react-codemod/.snyk b/npm-react-codemod/.snyk new file mode 100644 index 0000000000000..f33b993887252 --- /dev/null +++ b/npm-react-codemod/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - jscodeshift > babel > babel-core > babel-plugin-proto-to-assign > lodash: + patched: '2022-10-06T20:20:52.098Z' diff --git a/npm-react-codemod/package.json b/npm-react-codemod/package.json index 29505e80a21ee..87e6f1331e9ea 100644 --- a/npm-react-codemod/package.json +++ b/npm-react-codemod/package.json @@ -10,13 +10,15 @@ "scripts": { "build": "rm -rf build; babel transforms/ --out-dir=build/", "test": "jest", - "prepublish": "npm run build" + "prepublish": "npm run snyk-protect && npm run build", + "snyk-protect": "snyk-protect" }, "bin": { "react-codemod": "./react-codemod" }, "dependencies": { - "jscodeshift": "^0.1.0" + "jscodeshift": "^0.3.23", + "@snyk/protect": "latest" }, "devDependencies": { "babel": "^4.7.16", @@ -28,5 +30,6 @@ "testPathDirs": [ "test" ] - } + }, + "snyk": true }