mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
chore(19502): change license checker and generator behaviour to only add dev dependencies with --dev flag. (#19626) (#19866)
This commit is contained in:
parent
c05f5c5fa1
commit
ad4fec36c1
3 changed files with 7 additions and 4 deletions
|
@ -54,7 +54,7 @@
|
|||
"test:ui:runner": "echo 'use `node scripts/functional_test_runner`' && false",
|
||||
"test:server": "grunt test:server",
|
||||
"test:coverage": "grunt test:coverage",
|
||||
"checkLicenses": "grunt licenses",
|
||||
"checkLicenses": "grunt licenses --dev",
|
||||
"build": "node scripts/build",
|
||||
"start": "sh ./bin/kibana --dev",
|
||||
"precommit": "node scripts/precommit_hook",
|
||||
|
|
|
@ -10,10 +10,13 @@ export default function licenses(grunt) {
|
|||
const done = this.async();
|
||||
|
||||
try {
|
||||
const dev = Boolean(grunt.option('dev'));
|
||||
|
||||
assertLicensesValid({
|
||||
packages: await getInstalledPackages({
|
||||
directory: grunt.config.get('root'),
|
||||
licenseOverrides: LICENSE_OVERRIDES
|
||||
licenseOverrides: LICENSE_OVERRIDES,
|
||||
dev
|
||||
}),
|
||||
validLicenses: LICENSE_WHITELIST
|
||||
});
|
||||
|
|
|
@ -40,12 +40,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