HomeSoftware Heritage

webpack/weblabels-plugin: Read package.json file only when required

Description

webpack/weblabels-plugin: Read package.json file only when required

Some module folders do not have package.json file in it but licenses can
still be overridden using the licenseOverride option of the plugin.

Previously, package.json file was attempted to be read regardless of
possible license override, which was causing error.

Details

Provenance
anlambertAuthored on Jan 25 2022, 2:37 PM
anlambertPushed on Jan 26 2022, 11:22 AM
Differential Revision
D7032: assets/highlightjs: Add new languages to highlight and fix some issues
Parents
rDWAPPS1f6bf0c1f514: Fix ReST syntax
Branches
Unknown
Tags
Unknown
Build Status
Buildable 26349
Build 41198: test-and-buildJenkins console · Jenkins