mirror of
https://github.com/angular/angular.git
synced 2026-11-22 22:55:25 -05:00
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:
committed by
Kristiyan Kostadinov
parent
38816151b8
commit
ecc3aee916
@@ -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
@@ -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/**/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user