diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..acedbfe --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - generator-jhipster > html-wiring > cheerio > lodash: + patched: '2018-12-04T00:40:24.556Z' diff --git a/package.json b/package.json index 4505ef8..0f719ed 100644 --- a/package.json +++ b/package.json @@ -22,11 +22,12 @@ }, "dependencies": { "chalk": "1.1.3", - "generator-jhipster": ">=4.6.0", + "generator-jhipster": ">5.0.0", "mkdirp": "0.5.1", "semver": "5.3.0", "shelljs": "0.5.3", - "yeoman-generator": "2.0.5" + "yeoman-generator": "2.0.5", + "snyk": "^1.113.0" }, "devDependencies": { "eslint": "3.17.1", @@ -50,10 +51,13 @@ "yeoman-test": "1.6.0" }, "scripts": { - "test": "mocha test/*" + "test": "mocha test/*", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "license": "Apache-2.0", "bugs": { "url": "https://github.com/ryandawsonuk/generator-jhipster-activiti/issues" - } + }, + "snyk": true }