rules_nodejs maintainers suggest to upgrade to upcoming rules_nodejs version 2.0.0. The new version has breaking change how loading of the external repositories work. New approach makes WORKSPACE ordering easier since we won’t need rules_nodejs install_bazel_dependencies anymore. ts_setup_workspace has been a no-op since 1.0 when requirejs was vendored for ts_devserver. Therefore ts_setup_workspace is a no-op and can be removed. Bug: Issue 13090 Change-Id: If48daa15ca31627129eab7b865971124792336cc
This directory contains a tool to produce json file with information about licenses for npm workspace.
The tool consists of:
-
Command-line tool (entry point license-map-generator.ts) which gets as input a list of files in a node_modules folder, licenses config and produces a json file with packages grouped by their licenses. If the tool finds a file with an inappropriate license, then it returns error.
Exact format for input and output data of the tool can be found in the source code.
-
Bazel rule node_modules_licenses (in the node_modules_licenses.bzl file), which wraps command-line tool and allows to call it during the build