Skip to content

Commit

Permalink
refactor: remove npm_package_internal provide_source_directory optimi…
Browse files Browse the repository at this point in the history
…zation as that attribute is now removed and the optimization is automatic
  • Loading branch information
gregmagolan committed Jun 28, 2022
1 parent 4c35e4a commit c8748c3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ts/BUILD.typescript
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
"BUILD file inserted into @npm_typescript repository"
load("@aspect_rules_js//js:defs.bzl", "js_binary")
load("@aspect_rules_js//npm/private:npm_package_internal.bzl", npm_package = "npm_package_internal")
load("@aspect_rules_js//npm/private:npm_package_internal.bzl", "npm_package_internal")
load("@aspect_rules_js//npm:defs.bzl", "npm_link_package")
load("@aspect_bazel_lib//lib:directory_path.bzl", "directory_path")
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
load("@bazel_skylib//rules:write_file.bzl", "write_file")

npm_package(
npm_package_internal(
name = "npm_typescript",
src = "package",
# optimization to prevent an additional copy
provide_source_directory = True,
package = "typescript",
version = "ts_version",
)
Expand Down Expand Up @@ -50,7 +48,7 @@ js_binary(
)

# tsc worker
npm_package(
npm_package_internal(
name = "npm_google_protobuf",
src = "@npm_google_protobuf//:package",
package = "google-protobuf",
Expand All @@ -63,7 +61,7 @@ npm_link_package(
visibility = ["//visibility:public"],
)

npm_package(
npm_package_internal(
name = "npm_at_bazel_worker",
src = "@npm_at_bazel_worker//:package",
package = "@bazel/worker",
Expand Down

0 comments on commit c8748c3

Please sign in to comment.