Skip to content

Commit

Permalink
Fix @bazel/typescript package for downstream usage
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Feb 21, 2019
1 parent 72b29ec commit dba7250
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions packages/typescript/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ npm_package(
# Do a simple replacement needed to make the local development differ
# from how our release is used.
"//devserver:devserver_bin": "//devserver",
# This file gets vendored into our repo
"@build_bazel_rules_typescript//internal:common": "//internal:common",
},
vendor_external = ["build_bazel_rules_typescript"],
deps = [
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/internal/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ load("@build_bazel_rules_nodejs//internal/common:node_module_info.bzl", "NodeMod
# pylint: disable=missing-docstring
load("@build_bazel_rules_typescript//internal:common/compilation.bzl", "COMMON_ATTRIBUTES", "DEPS_ASPECTS", "compile_ts", "ts_providers_dict_to_struct")
load("@build_bazel_rules_typescript//internal:common/tsconfig.bzl", "create_tsconfig")
load("@build_bazel_rules_typescript//internal:ts_config.bzl", "TsConfigInfo")
load("//internal:ts_config.bzl", "TsConfigInfo")

_DEFAULT_COMPILER = "@npm//@bazel/typescript/bin:tsc_wrapped"

Expand Down
8 changes: 4 additions & 4 deletions packages/typescript/internal/ts_repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

"Install toolchain dependencies"

# BEGIN-DEV-ONLY
# BEGIN-INTERNAL
# Parts of this BUILD file only necessary when building within the bazelbuild/rules_typescript repo.
# The generated `@bazel/typescript` npm package contains a trimmed BUILD file using # DEV-ONLY fences.
load("@bazel_gazelle//:deps.bzl", "go_repository")

# END-DEV-ONLY
# END-INTERNAL
load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "check_rules_nodejs_version", "yarn_install")

def ts_setup_workspace():
Expand Down Expand Up @@ -56,7 +56,7 @@ def ts_setup_workspace():
yarn_lock = "@npm_bazel_typescript//internal/protobufjs:yarn.lock",
)

# BEGIN-DEV-ONLY
# BEGIN-INTERNAL
def ts_setup_dev_workspace():
"""
Setup the toolchain needed for local development, but not needed by users.
Expand All @@ -79,4 +79,4 @@ def ts_setup_dev_workspace():
importpath = "github.com/mattn/go-isatty",
)

# END-DEV-ONLY
# END-INTERNAL

0 comments on commit dba7250

Please sign in to comment.