mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
chore(19502): change license checker and generator behaviour to only add dev dependencies with --dev flag. (#19626)
This commit is contained in:
parent
d186aafb46
commit
6ed5e7095b
3 changed files with 7 additions and 4 deletions
|
@ -59,12 +59,12 @@ export default function licensesCSVReport(grunt) {
|
|||
try {
|
||||
const file = grunt.option('csv');
|
||||
const directory = grunt.option('directory');
|
||||
const release = Boolean(grunt.option('release'));
|
||||
const dev = Boolean(grunt.option('dev'));
|
||||
|
||||
const packages = await getInstalledPackages({
|
||||
directory: directory ? resolve(directory) : grunt.config.get('root'),
|
||||
licenseOverrides: LICENSE_OVERRIDES,
|
||||
dev: !release
|
||||
dev
|
||||
});
|
||||
|
||||
const csv = packages.map(pkg => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue