mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Alon Mishne
parent
0e1f1ed573
commit
223ff74891
+1
-1
@@ -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",
|
||||
)
|
||||
|
||||
|
||||
@@ -32,6 +32,8 @@ ng_examples_db(
|
||||
ng_package(
|
||||
srcs = [
|
||||
"package.json",
|
||||
],
|
||||
data = [
|
||||
"resources/code-examples.db",
|
||||
],
|
||||
package = "@angular/forms",
|
||||
|
||||
Reference in New Issue
Block a user