Files
Alan Agius ba59de563f refactor(docs-infra): rename tutorial & example package.json.template to package.json
Rename the tutorial and example template packages' package.json.template files to package.json on disk.

To comply with ng_package limitations (which forbids floating package.json files in package output), we added a copy_file rule in the BUILD files to generate the .template files during build/packaging, and excluded the source package.json files from the filegroups. This keeps package.json as standard files in the source tree while preserving docs packaging and runtime logic.
2026-06-03 18:19:17 +02:00

17 lines
345 B
Python

load("@bazel_lib//lib:copy_file.bzl", "copy_file")
copy_file(
name = "package_json_template",
src = "package.json",
out = "package.json.template",
)
filegroup(
name = "files",
srcs = glob(
["**/*"],
exclude = ["package.json"],
) + [":package_json_template"],
visibility = ["//visibility:public"],
)