Adding licenses of dependencies and their dependencies(transitive dep)

Third party license file

Table of contents

Overview

We have a ThirdPartyLicense.txt file on main page, which consist all the licenses of direct and indirect dependencies, used in patternscape project. In order to generate or update this file we have written a script called "thirdPartyLicense.js". It creates a graph of all direct and indirect dependencies and fetch their licenses. Then all the licenses are listed in a file with repository, author and package names. If any package license is not found then empty space is left for it, so we can update it manually.

Update third party licenses

Steps to update third party license:

  1. Go to Patternscape → Tests_and_assets → project_operations → licensing
  2. Execute node thirdPartyLicense.js in that folder
  3. Output file will be generated in same folder named as "ThirdPartyLicense.txt"
  4. Check output file if any package license is not found then it will be listed in the last of file with LICENSE_FILE_NOT_FOUND tag.
  5. You can use **manualLicensing.txt** file to copy paste failed cases licenses or add them manually from package repository.
  6. Now place this new ThirdPartyLicense.txt file in project directory.