From d43c7b581d497f8d26b87d968bc6cf0da8abeafc Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Thu, 29 Nov 2018 09:53:00 +0000 Subject: [PATCH] Add licensing checker for production dependencies --- package.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4dee913d..d916181f 100644 --- a/package.json +++ b/package.json @@ -61,8 +61,10 @@ "scripts": { "install": "(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)", "clean": "rm -rf node_modules/ build/ vendor/ .nyc_output/ coverage/ test/fixtures/output.*", - "test": "semistandard && cc && nyc --reporter=lcov --branches=99 mocha --slow=5000 --timeout=60000 ./test/unit/*.js && prebuild-ci", - "coverage": "./test/coverage/report.sh", + "test": "semistandard && cc && npm run test-unit && npm run test-licensing && prebuild-ci", + "test-unit": "nyc --reporter=lcov --branches=99 mocha --slow=5000 --timeout=60000 ./test/unit/*.js", + "test-licensing": "license-checker --production --summary --onlyAllow 'Apache-2.0;BSD;ISC;MIT'", + "test-coverage": "./test/coverage/report.sh", "test-leak": "./test/leak/leak.sh", "docs": "for m in constructor input resize composite operation colour channel output utility; do documentation build --shallow --format=md --markdown-toc=false lib/$m.js >docs/api-$m.md; done" }, @@ -88,13 +90,13 @@ "vips" ], "dependencies": { - "bindings": "^1.3.0", + "bindings": "^1.3.1", "color": "^3.1.0", "detect-libc": "^1.0.3", "fs-copy-file-sync": "^1.1.1", "nan": "^2.11.1", "npmlog": "^4.1.2", - "prebuild-install": "^5.2.1", + "prebuild-install": "^5.2.2", "semver": "^5.6.0", "simple-get": "^3.0.3", "tar": "^4.4.8", @@ -107,11 +109,12 @@ "documentation": "^8.1.2", "exif-reader": "^1.0.2", "icc": "^1.0.0", + "license-checker": "^24.0.1", "mocha": "^5.2.0", "mock-fs": "^4.7.0", "nyc": "^13.1.0", "prebuild": "^8.1.2", - "prebuild-ci": "^2.2.3", + "prebuild-ci": "^2.3.0", "rimraf": "^2.6.2", "semistandard": "^13.0.1" },