mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
e9987f2019
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.
7 lines
111 B
JSON
7 lines
111 B
JSON
{
|
|
"dependencies": {
|
|
"@angular/compiler": "workspace:*",
|
|
"@angular/compiler-cli": "workspace:*"
|
|
}
|
|
}
|