説明
For the standalone builds of Yarn (the single .js files that contain everything), we need to build a license file containing the licenses for all the dependencies in order for our usage of their source code to comply with the licenses.
For the regular tarball, we're complying by each dependency having a LICENSE file in its directory. For the standalone build, we're omitting the LICENSE files, so we need to combine them into one big license file.
It looks like yarn licenses generate-disclaimer is designed to do just that - We might need to run that as part of the build and save the generated file.
MIT license:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
BSD license:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.