mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Migrate x-pack-kibana source to kibana
This commit is contained in:
parent
d9d9fb22fb
commit
fe4609647d
3245 changed files with 276973 additions and 2388 deletions
|
@ -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
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue