mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The compiler generates code for the Angular runtime in `@angular/core` which has to be the exact same version, as otherwise there may be version skew between what the compiler generates and what the runtime supports. This would result in hard to diagnose problems at runtime. By adding a peer dependency for `@angular/compiler` on `@angular/core` we can let the package manager report an error (NPM 7+) or warning (NPM 6, Yarn) during installation to signal that the set of packages is incompatible. PR Close #45267
30 lines
655 B
JSON
30 lines
655 B
JSON
{
|
|
"name": "@angular/compiler",
|
|
"version": "0.0.0-PLACEHOLDER",
|
|
"description": "Angular - the compiler library",
|
|
"author": "angular",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": "^12.20.0 || ^14.15.0 || >=16.10.0"
|
|
},
|
|
"dependencies": {
|
|
"tslib": "^2.3.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@angular/core": "0.0.0-PLACEHOLDER"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@angular/core": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/angular/angular.git",
|
|
"directory": "packages/compiler"
|
|
},
|
|
"ng-update": {
|
|
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
|
|
},
|
|
"sideEffects": true
|
|
}
|