diff --git a/BAZEL_MIGRATION.md b/BAZEL_MIGRATION.md index 70456fa10d5..19637e4d3d9 100644 --- a/BAZEL_MIGRATION.md +++ b/BAZEL_MIGRATION.md @@ -314,14 +314,19 @@ load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm") pkg_npm( name = "tfjs-core_pkg", - srcs = ["package.json"], + srcs = [ + # Add any static files the package should include here + "package.json", + "README.md", + ], tags = ["ci"], deps = [ ":copy_bundles", ":copy_miniprogram", ":copy_miniprogram_map", ":copy_src_to_dist", - ":copy_test_snippets", # <- This is only in core, so I've omitted its definition. + ":copy_test_snippets", # <- This is only in core, so I've omitted its + # definition in these docs. ], ) ``` diff --git a/tfjs-backend-cpu/BUILD.bazel b/tfjs-backend-cpu/BUILD.bazel index 81cc9b18cb5..e97c81032fa 100644 --- a/tfjs-backend-cpu/BUILD.bazel +++ b/tfjs-backend-cpu/BUILD.bazel @@ -74,7 +74,10 @@ copy_to_dist( pkg_npm( name = "tfjs-backend-cpu_pkg", - srcs = ["package.json"], + srcs = [ + "README.md", + "package.json", + ], tags = ["ci"], deps = [ ":copy_bundles", diff --git a/tfjs-core/BUILD.bazel b/tfjs-core/BUILD.bazel index e716f31024e..ece5ff4984e 100644 --- a/tfjs-core/BUILD.bazel +++ b/tfjs-core/BUILD.bazel @@ -86,7 +86,10 @@ copy_file( pkg_npm( name = "tfjs-core_pkg", - srcs = ["package.json"], + srcs = [ + "README.md", + "package.json", + ], tags = ["ci"], deps = [ ":copy_bundles",