build: don't substitute binary files

Previously, ng_package applied version stamping to all source files, which corrupted binary files like SQLite databases.

This change ignores text substitution for files passed to the `data` attribute, ensuring binary assets are preserved intact in the final package.

fixes #66637

(cherry picked from commit b885851cbe)
This commit is contained in:
Matthieu Riegler
2026-01-21 18:16:20 +01:00
committed by Alon Mishne
parent 0e1f1ed573
commit 223ff74891
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ bazel_dep(name = "yq.bzl", version = "0.3.4")
bazel_dep(name = "rules_angular")
git_override(
module_name = "rules_angular",
commit = "7133b97252508f8528e5c5818a9a73cacc2e2a0e",
commit = "7f607d44d74fd1470e51f3d55363f1684548d008",
remote = "https://github.com/devversion/rules_angular.git",
)
+2
View File
@@ -32,6 +32,8 @@ ng_examples_db(
ng_package(
srcs = [
"package.json",
],
data = [
"resources/code-examples.db",
],
package = "@angular/forms",