[6.x][license csv report] Support directory flag (#17075)
* [license csv report] Support directory flag (#17070) * [license report] support directory flag * override png-js * override eslint-plugin-kibana-custom * remove eslint-plugin-kibana-custom override
This commit is contained in:
parent
03d9c4218e
commit
1def6ed78f
|
@ -47,6 +47,7 @@ module.exports = function () {
|
|||
// 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'],
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue