build(compiler-cli): clean up preprocessor build configs

- Remove unused `//packages/common` and `//packages/compiler-cli/private`
  dependencies from `//packages/compiler-cli/preprocessor:preprocessor`.
- Include `//packages/compiler-cli/preprocessor/ng-analyze:wasm` in
  `//packages/compiler-cli/preprocessor:npm_package`.
- Align `packages/compiler-cli/preprocessor/package.json` name with the
  Bazel `npm_package` target (`@angular/compiler-cli/preprocessor`) and
  remove the unused `vscode-uri` dependency.
- Remove unused `@crates//:oxc-miette-derive` `proc_macro_deps` from
  `ng-analyze` and add `bin_test` to execute unit tests in `src/main.rs`.
- Remove stale `ng-analyze-wasm` exclusion from `tslint.json`.
This commit is contained in:
Andrew Scott
2026-10-14 17:33:24 +02:00
committed by Kristiyan Kostadinov
parent 38816151b8
commit ecc3aee916
4 changed files with 3 additions and 11 deletions
@@ -27,11 +27,9 @@ ts_project(
"//:node_modules/@types/node",
"//:node_modules/magic-string",
"//:node_modules/typescript",
"//packages/common",
"//packages/compiler",
"//packages/compiler-cli",
"//packages/compiler-cli/preprocessor/ng-analyze:wasm",
"//packages/compiler-cli/private",
],
)
@@ -73,6 +71,7 @@ npm_package(
srcs = [
"package.json",
":preprocessor",
"//packages/compiler-cli/preprocessor/ng-analyze:wasm",
],
package = "@angular/compiler-cli/preprocessor",
)
@@ -13,9 +13,6 @@ rust_shared_library(
),
crate_name = "ng_analyze",
edition = "2021",
proc_macro_deps = [
"@crates//:oxc-miette-derive",
],
target_compatible_with = ["@platforms//cpu:wasm32"],
deps = [
"@crates//:futures",
@@ -66,9 +63,6 @@ rust_library(
exclude = ["src/main.rs"],
),
edition = "2021",
proc_macro_deps = [
"@crates//:oxc-miette-derive",
],
deps = [
"@crates//:futures",
"@crates//:glob",
@@ -1,5 +1,5 @@
{
"name": "@angular/ngp",
"name": "@angular/compiler-cli/preprocessor",
"version": "0.0.0-PLACEHOLDER",
"description": "Angular - Hybrid Preprocessor",
"type": "module",
+1 -2
View File
@@ -130,8 +130,7 @@
"./devtools/projects/ng-devtools/src/lib/vendor/**/*",
// Ignore vendored code
"./third_party/**/*",
"./packages/compiler-cli/preprocessor/ng-analyze-wasm/**/*"
"./third_party/**/*"
]
}
}