Migrate x-pack-kibana source to kibana

This commit is contained in:
Jenkins CI 2018-04-20 19:13:37 +00:00 committed by spalger
parent d9d9fb22fb
commit fe4609647d
3245 changed files with 276973 additions and 2388 deletions

View file

@ -1,6 +1,7 @@
import { writeFileSync } from 'fs';
import { resolve } from 'path';
import { getInstalledPackages } from './lib';
import { getInstalledPackages } from '../src/dev/npm';
import { LICENSE_OVERRIDES } from '../src/dev/license_checker';
import {
isNull,
@ -37,14 +38,13 @@ export default function licensesCSVReport(grunt) {
const done = this.async();
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: directory ? resolve(directory) : grunt.config.get('root'),
licenseOverrides: overrides,
licenseOverrides: LICENSE_OVERRIDES,
dev: !release
});