ci: use npm_install for bazel
using yarn_install polluted our node_modules cache because it disregards the npm_shrinkwrap.json
This commit is contained in:
parent
98308cd79c
commit
fa81c8eeb3
|
@ -3,7 +3,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
working_directory: ~/ng
|
working_directory: ~/ng
|
||||||
docker:
|
docker:
|
||||||
- image: alexeagle/ngcontainer
|
- image: angular/ngcontainer
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
|
|
|
@ -3,10 +3,10 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
||||||
git_repository(
|
git_repository(
|
||||||
name = "io_bazel_rules_typescript",
|
name = "io_bazel_rules_typescript",
|
||||||
remote = "https://github.com/bazelbuild/rules_typescript.git",
|
remote = "https://github.com/bazelbuild/rules_typescript.git",
|
||||||
tag = "0.0.3",
|
commit = "804c5da",
|
||||||
)
|
)
|
||||||
|
|
||||||
load("@io_bazel_rules_typescript//:defs.bzl", "node_repositories", "yarn_install")
|
load("@io_bazel_rules_typescript//:defs.bzl", "node_repositories", "npm_install")
|
||||||
|
|
||||||
node_repositories()
|
node_repositories()
|
||||||
yarn_install(package_json = "//:package.json")
|
npm_install(package_json = "//:package.json")
|
||||||
|
|
Loading…
Reference in New Issue