mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[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:
parent
0f73ba933a
commit
2b3183fcda
2 changed files with 5 additions and 1 deletions
|
@ -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'],
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue