Skip to content

Commit f27fc33

Browse files
committed
build: drop unused npm dependencies in root package.json (#2981)
PR Close #2981
1 parent 6c7aed4 commit f27fc33

File tree

9 files changed

+3507
-4354
lines changed

9 files changed

+3507
-4354
lines changed

.github/local-actions/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
load("@devinfra_npm//:defs.bzl", "npm_link_all_packages")
12
load("//tools:defaults.bzl", "ts_config")
23

34
package(default_visibility = ["//.github/local-actions:__subpackages__"])
45

6+
npm_link_all_packages()
7+
58
ts_config(
69
name = "tsconfig",
710
src = "tsconfig.json",
11+
deps = [
12+
":node_modules/@types/node",
13+
],
814
)

.github/local-actions/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"type": "module"
2+
"type": "module",
3+
"dependencies": {
4+
"@types/node": "24.3.0"
5+
}
36
}

MODULE.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,15 @@ rules_angular = use_extension("@rules_angular//setup:extensions.bzl", "rules_ang
7272
rules_angular.setup(
7373
name = "dev_infra_rules_angular_configurable_deps",
7474
angular_compiler_cli = "//:node_modules/@angular/compiler-cli",
75-
typescript = "//:node_modules/typescript-local",
75+
typescript = "//:node_modules/typescript",
7676
)
7777
use_repo(rules_angular, **{"rules_angular_configurable_deps": "dev_infra_rules_angular_configurable_deps"})
7878

7979
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
8080
npm.npm_translate_lock(
8181
name = "devinfra_npm",
8282
data = [
83+
"@devinfra//.github/local-actions:package.json",
8384
"@devinfra//.github/local-actions/branch-manager:package.json",
8485
"@devinfra//.github/local-actions/labels-sync:package.json",
8586
"@devinfra//.github/local-actions/lock-closed:package.json",

0 commit comments

Comments
 (0)