build: update to rules_nodejs 1.5.0 (#36307)
### New stuff * The `ts_project` rule is a simple wrapper around the TypeScript compiler, `tsc`. This is an alternative to `ts_library` but not a replacement. Read more about the trade-offs at https://bazelbuild.github.io/rules_nodejs/TypeScript#alternatives or read the [API docs](https://bazelbuild.github.io/rules_nodejs/TypeScript#ts_project) * `pkg_npm` can now be used as a dependency within your repo as well as for publishing to npm. It provides a `LinkablePackageInfo` which is our internal API to pass package name/path to downstream compilations, essentially providing the "Lerna" feature. * There is experimental support for Bazel's "worker mode" in `rollup_bundle`, which essentially puts Rollup in watch mode. Add the `supports_workers = True` attribute to opt-in. * Better support for [pre-defined label variables](https://docs.bazel.build/versions/master/be/make-variables.html#predefined_label_variables) like `$(rootpath)` and `$(execpath)` - we no longer recommend using `$(location)` at all. See release notes https://github.com/bazelbuild/rules_nodejs/releases/tag/1.5.0 for more info. PR Close #36307
This commit is contained in:

committed by
Alex Rickabaugh

parent
df8e45a193
commit
15cffa210c
@ -15,8 +15,8 @@ workspace(
|
||||
|
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
|
||||
RULES_NODEJS_VERSION = "1.4.1"
|
||||
RULES_NODEJS_SHA256 = "2eca5b934dee47b5ff304f502ae187c40ec4e33e12bcbce872a2eeb786e23269"
|
||||
RULES_NODEJS_VERSION = "1.5.0"
|
||||
RULES_NODEJS_SHA256 = "d0c4bb8b902c1658f42eb5563809c70a06e46015d64057d25560b0eb4bdc9007"
|
||||
http_archive(
|
||||
name = "build_bazel_rules_nodejs",
|
||||
sha256 = RULES_NODEJS_SHA256,
|
||||
|
@ -40,11 +40,11 @@ function addDevDependenciesToPackageJson(options: Schema) {
|
||||
['@angular/bazel', angularCore.version],
|
||||
['@bazel/bazel', '2.1.0'],
|
||||
['@bazel/ibazel', '0.12.3'],
|
||||
['@bazel/karma', '1.4.1'],
|
||||
['@bazel/protractor', '1.4.1'],
|
||||
['@bazel/rollup', '1.4.1'],
|
||||
['@bazel/terser', '1.4.1'],
|
||||
['@bazel/typescript', '1.4.1'],
|
||||
['@bazel/karma', '1.5.0'],
|
||||
['@bazel/protractor', '1.5.0'],
|
||||
['@bazel/rollup', '1.5.0'],
|
||||
['@bazel/terser', '1.5.0'],
|
||||
['@bazel/typescript', '1.5.0'],
|
||||
['history-server', '1.3.1'],
|
||||
['html-insert-assets', '0.5.0'],
|
||||
['karma', '4.4.1'],
|
||||
|
Reference in New Issue
Block a user