[license csv report] Support directory flag (#17070)

* [license report] support directory flag

* override png-js

* override eslint-plugin-kibana-custom
This commit is contained in:
Jonathan Budzenski 2018-03-09 14:26:26 -06:00 committed by GitHub
parent 0f73ba933a
commit 2b3183fcda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -42,11 +42,13 @@ module.exports = function () {
overrides: {
// TODO can be removed once we upgrade past elasticsearch-browser@14.0.0
'elasticsearch-browser@13.0.1': ['Apache-2.0'],
'@elastic/eslint-plugin-kibana-custom@1.1.0': 'Apache-2.0',
// TODO can be removed once we upgrade past colors.js@1.0.0
'colors@0.5.1': ['MIT'],
// TODO can be removed once we upgrade past map-stream@0.5.0
'map-stream@0.1.0': ['MIT'],
'uglify-js@2.2.5': ['BSD'],
'png-js@0.1.1': ['MIT'],
}
}
};

View file

@ -1,4 +1,5 @@
import { writeFileSync } from 'fs';
import { resolve } from 'path';
import { getInstalledPackages } from './lib';
import {
@ -38,10 +39,11 @@ export default function licensesCSVReport(grunt) {
try {
const overrides = grunt.config.get('licenses.options.overrides');
const file = grunt.option('csv');
const directory = grunt.option('directory');
const release = Boolean(grunt.option('release'));
const packages = await getInstalledPackages({
directory: grunt.config.get('root'),
directory: directory ? resolve(directory) : grunt.config.get('root'),
licenseOverrides: overrides,
dev: !release
});