diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..55664d3 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - '@bootstrap-styled/v4 > @rollup-umd/documentation-cli > async > lodash': + patched: '2020-04-30T23:31:04.226Z' + - '@bootstrap-styled/toggle > @bootstrap-styled/v4 > @rollup-umd/documentation-cli > async > lodash': + patched: '2020-04-30T23:31:04.226Z' diff --git a/package.json b/package.json index 303621e..d2c194b 100644 --- a/package.json +++ b/package.json @@ -29,10 +29,11 @@ "test:clean": "rimraf ./coverage", "test:watch": "npm run test -- --watch", "lint": "eslint src", - "prepublish": "npm run build", + "prepublish": "npm run snyk-protect && npm run build", "lint-staged": "lint-staged", "styleguide": "styleguidist server", - "styleguide:build": "styleguidist build" + "styleguide:build": "styleguidist build", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -207,7 +208,8 @@ "@bootstrap-styled/toggle": "^1.2.3", "@bootstrap-styled/v4": "^3.0.6", "prop-types": "^15.7.2", - "reselect": "^4.0.0" + "reselect": "^4.0.0", + "snyk": "^1.316.1" }, "peerDependencies": { "react": "^16.0.0", @@ -343,5 +345,6 @@ "commitizen": { "path": "./node_modules/cz-conventional-changelog" } - } + }, + "snyk": true }