refactor(upgrade): use Bazel packages to avoid symlinks in the source (#29466)
Previously we had to share code between upgrade/dynamic and upgrade/static by symlinking the `src` folder, which allowed both packages to access the upgrade/common files. These symlinks are always problematic on Windows, where we had to run a script to re-link them, and restore them. This change uses Bazel packages to share the `upgrade/common` code, which avoids the need for symlinking the `src` folder. Also, the Windows specific scripts that fixup the symlinks have also been removed as there is no more need for them. PR Close #29466
This commit is contained in:

committed by
Jason Aden

parent
e5201f92fc
commit
9f54d76ef5
@ -7,14 +7,13 @@ ng_module(
|
||||
srcs = glob(
|
||||
[
|
||||
"*.ts",
|
||||
"src/common/**/*.ts",
|
||||
"src/dynamic/**/*.ts",
|
||||
"src/dynamic/src/*.ts",
|
||||
],
|
||||
),
|
||||
deps = [
|
||||
"//packages/core",
|
||||
"//packages/platform-browser",
|
||||
"//packages/platform-browser-dynamic",
|
||||
"//packages/upgrade/src/common",
|
||||
"@npm//zone.js",
|
||||
],
|
||||
)
|
||||
|
Reference in New Issue
Block a user