Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit f059c3c

Browse files
committed
build: apply formatting to the repo now that its set up again
1 parent 3103e83 commit f059c3c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2255
-1938
lines changed

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
load("@aspect_rules_js//js:defs.bzl", "js_library")
21
load("@aspect_bazel_lib//lib:expand_template.bzl", "expand_template_rule")
2+
load("@aspect_rules_js//js:defs.bzl", "js_library")
33
load("@aspect_rules_js//npm:defs.bzl", "npm_package")
44
load("@aspect_rules_ts//ts:defs.bzl", "ts_config")
55
load("@npm//:defs.bzl", "npm_link_all_packages")

MODULE.bazel

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ rules_ts_ext.deps(
2222
)
2323
use_repo(rules_ts_ext, **{"npm_typescript": "angular_npm_typescript"})
2424

25-
26-
2725
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")
2826
use_repo(pnpm, "pnpm")
2927

@@ -32,11 +30,11 @@ npm.npm_translate_lock(
3230
name = "npm",
3331
data = [
3432
"//:package.json",
35-
"//integration/pre_standalone_project:package.json",
36-
"//integration/workspace:package.json",
33+
"//:pnpm-workspace.yaml",
3734
"//integration/pre_apf_project:package.json",
35+
"//integration/pre_standalone_project:package.json",
3836
"//integration/project:package.json",
39-
"//:pnpm-workspace.yaml",
37+
"//integration/workspace:package.json",
4038
],
4139
npmrc = "//:.npmrc",
4240
pnpm_lock = "//:pnpm-lock.yaml",

client/BUILD.bazel

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
1-
load("@aspect_rules_ts//ts:defs.bzl", "ts_config")
21
load("@aspect_rules_esbuild//esbuild:defs.bzl", "esbuild")
2+
load("@aspect_rules_ts//ts:defs.bzl", "ts_config")
33

44
ts_config(
55
name = "tsconfig",
66
src = "tsconfig.json",
7+
visibility = ["//client:__subpackages__"],
78
deps = [
89
"//:tsconfig",
910
"//common:tsconfig",
1011
],
11-
visibility = ["//client:__subpackages__"]
1212
)
1313

1414
esbuild(
1515
name = "index",
16-
entry_point = "//client/src:extension.js",
17-
deps = [
18-
"//client/src",
19-
"//:node_modules/source-map-support",
20-
],
21-
platform = "node",
22-
format = "cjs",
23-
sourcemap = "external",
2416
config = {
2517
# Workaround for https://github.com/aspect-build/rules_esbuild/issues/58
2618
"resolveExtensions": [".js"],
2719
},
20+
entry_point = "//client/src:extension.js",
2821
external = [
2922
"fs",
3023
"path",
@@ -33,7 +26,14 @@ esbuild(
3326
"vscode-languageserver-protocol",
3427
"vscode-jsonrpc",
3528
],
29+
format = "cjs",
3630
# Do not enable minification. It seems to break the extension on Windows (with WSL). See #1198.
3731
minify = False,
32+
platform = "node",
33+
sourcemap = "external",
3834
visibility = ["//:__pkg__"],
35+
deps = [
36+
"//:node_modules/source-map-support",
37+
"//client/src",
38+
],
3939
)

0 commit comments

Comments
 (0)