mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Compiler now would have `.js` files. Those aren't picked up as ESM, unless we install the `package.json` with `type: module`. Sounds great on paper, but doesn't work in reality because the way the compiler packages are available to `api-gen/` is via the old `rules_nodejs` linker, so the `packages/package.json` wouldn't work; nor do the `package.json`s of the e.g. compiler-cli package work- because those already contain the `exports` of the built npm package. We fix this in a much more reasonable way, and the whole module resolution problem by leveraging the pnpm linking here. This works as expected. PR Close #61566
15 lines
438 B
Text
15 lines
438 B
Text
load("@npm2//:defs.bzl", "npm_link_all_packages")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
npm_link_all_packages()
|
|
|
|
# Expose the sources in the dev-infra NPM package.
|
|
filegroup(
|
|
name = "files",
|
|
srcs = glob(["*"]) + [
|
|
"//adev/shared-docs/pipeline/api-gen/extraction:files",
|
|
"//adev/shared-docs/pipeline/api-gen/manifest:files",
|
|
"//adev/shared-docs/pipeline/api-gen/rendering:files",
|
|
],
|
|
)
|