mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
ba59de563f
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.
17 lines
345 B
Python
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"],
|
|
)
|