From 92b7684915e6da5799656d7dddb0a8437006323b Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Tue, 12 Feb 2019 16:28:54 -0800 Subject: [PATCH] Restore back-compat file internal/node.bzl and mark as deprecated (#545) * Restore back-compat file internal/node.bzl and mark as deprecated * build: add restored files to release archive --- BUILD.bazel | 1 + internal/BUILD.bazel | 22 +++++++++++++++++++++- internal/collect_es6_sources.bzl | 2 ++ internal/node.bzl | 31 +++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 internal/node.bzl diff --git a/BUILD.bazel b/BUILD.bazel index 1ae8038715..fb55bcabce 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -30,6 +30,7 @@ npm_package( "//third_party/github.com/gjtorikian/isBinaryFile:package_contents", "//third_party/github.com/source-map:package_contents", "//third_party/github.com/source-map-support:package_contents", + "//internal:package_contents", "//internal/common:package_contents", "//internal/history-server:package_contents", "//internal/http-server:package_contents", diff --git a/internal/BUILD.bazel b/internal/BUILD.bazel index f8b3c38bd8..cbc6625a2d 100644 --- a/internal/BUILD.bazel +++ b/internal/BUILD.bazel @@ -1 +1,21 @@ -# Marker file that this directory is a bazel package +# Copyright 2017 The Bazel Authors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +filegroup( + name = "package_contents", + srcs = glob(["*"]), + visibility = ["//:__pkg__"], +) diff --git a/internal/collect_es6_sources.bzl b/internal/collect_es6_sources.bzl index 43d537361f..5dc8d09870 100644 --- a/internal/collect_es6_sources.bzl +++ b/internal/collect_es6_sources.bzl @@ -15,6 +15,8 @@ """Private API surfaced for https://github.com/angular/angular backward-compatability Users should not load files under "/internal" + +NOTE: This file is DEPRECATED and will be removed in a future release. """ load("//internal/common:collect_es6_sources.bzl", _collect_es6_sources = "collect_es6_sources") diff --git a/internal/node.bzl b/internal/node.bzl new file mode 100644 index 0000000000..a624e0ee1b --- /dev/null +++ b/internal/node.bzl @@ -0,0 +1,31 @@ +# Copyright 2017 The Bazel Authors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Private API surfaced for https://github.com/bazelbuild/rules_typescript backward-compatability + +Users should not load files under "/internal" + +NOTE: This file is DEPRECATED and will be removed in a future release. +""" + +load( + "//internal/common:expand_into_runfiles.bzl", + _expand_location_into_runfiles = "expand_location_into_runfiles", + _expand_path_into_runfiles = "expand_path_into_runfiles", +) +load("//internal/common:sources_aspect.bzl", _sources_aspect = "sources_aspect") + +sources_aspect = _sources_aspect +expand_location_into_runfiles = _expand_location_into_runfiles +expand_path_into_runfiles = _expand_path_into_runfiles