diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..7114942 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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:minimatch:20160620': + - yeoman-generator > file-utils > minimatch: + patched: '2022-10-07T14:27:41.377Z' + - yeoman-generator > file-utils > glob > minimatch: + patched: '2022-10-07T14:27:41.377Z' + - yeoman-generator > file-utils > findup-sync > glob > minimatch: + patched: '2022-10-07T14:27:41.377Z' diff --git a/package.json b/package.json index b980e9e..30e3b8a 100644 --- a/package.json +++ b/package.json @@ -22,10 +22,16 @@ ], "repository": "bhht/generator-html-template", "dependencies": { - "yeoman-generator": "^0.18.0" + "yeoman-generator": "^5.0.0", + "@snyk/protect": "latest" }, "engines": { "node": ">=0.10.0" }, - "licenses": "MIT" + "licenses": "MIT", + "scripts": { + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" + }, + "snyk": true }