chore(19502): change license checker and generator behaviour to only add dev dependencies with --dev flag. (#19626)

This commit is contained in:
Tiago Costa 2018-06-12 07:56:10 -07:00 committed by GitHub
parent d186aafb46
commit 6ed5e7095b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -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 => {