Skip to content

v0.5.0

Compare
Choose a tag to compare
@intuit-svc intuit-svc released this 21 Jul 21:04

Release Notes

Better support for additional package.json attributes (#11)

Adds new rules to the package.json creation pipeline:

Adds merge_json rule to flatten multiple json files into one. This can be combined with the base_package_json attribute to create more dynamic package attributes.

Adds a create_contributors rule for generating the contributors section of a package.json from an .all-contributorsrc

Example:

load("@rules_player//javascript/package_json:index.bzl", "merge_json", "create_contributors")

create_contributors(
    name = "pkg_json_contrib",
    all_contributors = "//:.all-contributorsrc",
)

merge_json(
    name = "pkg_json_template",
    srcs = [
        "package-template.json",
        ":pkg_json_contrib",
    ]
)

🚀 Enhancement

  • Better support for additional package.json attributes #11 (@adierkens)

Authors: 1