diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..52474f2 --- /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: + - inquirer > lodash: + patched: '2020-04-30T22:22:32.304Z' + - merge-config > lodash: + patched: '2020-04-30T22:22:32.304Z' diff --git a/package.json b/package.json index 85910de..f64e811 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ }, "main": "lib", "scripts": { - "test": "mocha test/lib/bin/*.* --compilers coffee:coffee-script/register && mocha test/lib/building/*.* --compilers coffee:coffee-script/register && mocha test/lib/packaging/*.* --compilers coffee:coffee-script/register && mocha test/lib/scaffolding/*.* --compilers coffee:coffee-script/register && mocha test/lib/testing/*.* --compilers coffee:coffee-script/register && mocha test/lib/utils/*.* --compilers coffee:coffee-script/register" + "test": "mocha test/lib/bin/*.* --compilers coffee:coffee-script/register && mocha test/lib/building/*.* --compilers coffee:coffee-script/register && mocha test/lib/packaging/*.* --compilers coffee:coffee-script/register && mocha test/lib/scaffolding/*.* --compilers coffee:coffee-script/register && mocha test/lib/testing/*.* --compilers coffee:coffee-script/register && mocha test/lib/utils/*.* --compilers coffee:coffee-script/register", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "electron", @@ -27,7 +29,8 @@ "gulp-json-editor": "^2.2.1", "inquirer": "^3.0.1", "merge-config": "^2.0.0", - "underscore.string": "^3.3.4" + "underscore.string": "^3.3.4", + "snyk": "^1.316.1" }, "preferGlobal": "true", "bin": { @@ -51,5 +54,6 @@ "mocha": "^3.2.0", "spectron": "^3.6.0", "webpack-stream": "^3.2.0" - } + }, + "snyk": true }