Skip to content

Commit

Permalink
chore: remove protractor from_src index (bazel-contrib#1862)
Browse files Browse the repository at this point in the history
Use replacements during package publishing instead
  • Loading branch information
alexeagle authored May 4, 2020
1 parent a85462d commit 2e9e61b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 36 deletions.
3 changes: 3 additions & 0 deletions packages/protractor/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ pkg_npm(
"@npm_bazel_protractor//:package_contents",
],
build_file_content = """exports_files(["protractor.conf.js"])""",
substitutions = {
"@npm_bazel_protractor//:utils_lib": "@npm//@bazel/protractor",
},
vendor_external = [
"npm_bazel_protractor",
],
Expand Down
33 changes: 0 additions & 33 deletions packages/protractor/src/index.from_src.bzl

This file was deleted.

3 changes: 2 additions & 1 deletion packages/protractor/src/protractor_web_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ load("@io_bazel_rules_webtesting//web:web.bzl", "web_test_suite")
load("@io_bazel_rules_webtesting//web/internal:constants.bzl", "DEFAULT_WRAPPED_TEST_TAGS")

_PROTRACTOR_PEER_DEPS = [
"@npm//@bazel/protractor",
# NB: replaced during pkg_npm with "@npm//@bazel/protractor",
"@npm_bazel_protractor//:utils_lib",
"@npm//protractor",
]
_PROTRACTOR_ENTRY_POINT = "@npm//:node_modules/protractor/bin/protractor"
Expand Down
2 changes: 1 addition & 1 deletion packages/protractor/test/protractor-2/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@npm//http-server:index.bzl", "http_server")
load("@npm_bazel_protractor//:index.from_src.bzl", "protractor_web_test_suite")
load("@npm_bazel_protractor//:index.bzl", "protractor_web_test_suite")
load("@npm_bazel_rollup//:index.bzl", "rollup_bundle")
load("@npm_bazel_terser//:index.bzl", "terser_minified")
load("@npm_bazel_typescript//:index.bzl", "ts_config", "ts_devserver", "ts_library")
Expand Down
2 changes: 1 addition & 1 deletion packages/protractor/test/protractor/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@npm_bazel_protractor//:index.from_src.bzl", "protractor_web_test_suite")
load("@npm_bazel_protractor//:index.bzl", "protractor_web_test_suite")
load("@npm_bazel_typescript//:index.bzl", "ts_library")

ts_library(
Expand Down

0 comments on commit 2e9e61b

Please sign in to comment.