@@ -3,9 +3,9 @@ workspace(name = "angular_material")
3
3
# Add TypeScript rules
4
4
http_archive (
5
5
name = "build_bazel_rules_typescript" ,
6
- url = "https://github.com/bazelbuild/rules_typescript/archive/0.17 .0.zip" ,
7
- strip_prefix = "rules_typescript-0.17 .0" ,
8
- sha256 = "1626ee2cc9770af6950bfc77dffa027f9aedf330fe2ea2ee7e504428927bd95d " ,
6
+ url = "https://github.com/bazelbuild/rules_typescript/archive/0.18 .0.zip" ,
7
+ strip_prefix = "rules_typescript-0.18 .0" ,
8
+ sha256 = "4726e07a2f8d23b5e3af166f3b2a6e8aa75adad94b35ab4d959e8fe875f90272 " ,
9
9
)
10
10
11
11
# Fetch transient dependencies of the TypeScript bazel rules.
@@ -15,24 +15,28 @@ rules_typescript_dependencies()
15
15
# Add sass rules
16
16
http_archive (
17
17
name = "io_bazel_rules_sass" ,
18
- url = "https://github.com/bazelbuild/rules_sass/archive/0.1.0 .zip" ,
19
- strip_prefix = "rules_sass-0.1.0 " ,
20
- sha256 = "b243c4d64f054c174051785862ab079050d90b37a1cef7da93821c6981cb9ad4 " ,
18
+ url = "https://github.com/bazelbuild/rules_sass/archive/1.13.4 .zip" ,
19
+ strip_prefix = "rules_sass-1.13.4 " ,
20
+ sha256 = "5ddde0d3df96978fa537f76e766538c031dee4d29f91a895f4b1345b5e3f9b16 " ,
21
21
)
22
22
23
23
load ("@io_bazel_rules_sass//sass:sass_repositories.bzl" , "sass_repositories" )
24
24
sass_repositories ()
25
25
26
26
# NOTE: this rule installs nodejs, npm, and yarn, but does NOT install
27
27
# your npm dependencies. You must still run the package manager.
28
- load ("@build_bazel_rules_nodejs//:defs.bzl" , "check_bazel_version" , "node_repositories" )
28
+ load ("@build_bazel_rules_nodejs//:defs.bzl" , "check_bazel_version" , "node_repositories" ,
29
+ "npm_install" )
29
30
30
31
check_bazel_version ("0.15.0" )
31
- node_repositories (
32
- package_json = ["//:package.json" ],
33
- # Disabled until we use fine-grained dependencies. This was previously disabled but is now
34
- # enabled by default.
35
- preserve_symlinks = False ,
32
+ node_repositories ()
33
+
34
+ # Use Bazel managed node modules. See more below:
35
+ # https://github.com/bazelbuild/rules_nodejs#bazel-managed-vs-self-managed-dependencies
36
+ npm_install (
37
+ name = "npm" ,
38
+ package_json = "//:package.json" ,
39
+ package_lock_json = "//:package-lock.json" ,
36
40
)
37
41
38
42
# Setup TypeScript Bazel workspace
0 commit comments