mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
5579d96c60
With the recent lock file maintenance, the `@types/angular` dependency ended up being duplicated. This seems to happen because we locked our type dependency, but other Angular deps like `angular-route` had a looser dependency, resulting in e.g. `1.7` types and `1.8` types to be loaded. This ultimately ended up breaking TypeScript's auto-discovering of types and broke some example compilations e.g. ``` app/app.animations.ts(3,3): error TS2339: Property 'animation' does not exist on type 'IModule'. app/app.config.ts(5,45): error TS2694: Namespace 'angular' has no exported member 'route'. app/phone-detail/phone-detail.component.ajs.ts(10,37): error TS2694: Namespace 'angular' has no exported member 'route'. ``` We fix this by loosening the type dependency ranges, updating all of these. Also we update AngularJS itself to the final version. PR Close #46840
52 lines
1.5 KiB
JSON
52 lines
1.5 KiB
JSON
{
|
|
"name": "angular.io-example",
|
|
"version": "0.0.0",
|
|
"description": "Example project from an angular.io guide.",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"ng": "ng",
|
|
"start": "ng serve",
|
|
"build": "ng build",
|
|
"watch": "ng build --watch --configuration development",
|
|
"test": "ng test",
|
|
"e2e": "ng e2e"
|
|
},
|
|
"private": true,
|
|
"dependencies": {
|
|
"@angular/animations": "^14.1.0-next",
|
|
"@angular/common": "^14.1.0-next",
|
|
"@angular/compiler": "^14.1.0-next",
|
|
"@angular/core": "^14.1.0-next",
|
|
"@angular/forms": "^14.1.0-next",
|
|
"@angular/platform-browser": "^14.1.0-next",
|
|
"@angular/platform-browser-dynamic": "^14.1.0-next",
|
|
"@angular/router": "^14.1.0-next",
|
|
"angular": "^1.8.3",
|
|
"angular-in-memory-web-api": "~0.14.0",
|
|
"angular-route": "1.8.0",
|
|
"rxjs": "~7.5.0",
|
|
"tslib": "^2.3.0",
|
|
"zone.js": "~0.11.4"
|
|
},
|
|
"devDependencies": {
|
|
"@angular-devkit/build-angular": "^14.1.0-next",
|
|
"@angular/cli": "~14.0.0",
|
|
"@angular/compiler-cli": "^14.1.0-next",
|
|
"@types/angular": "^1.8.4",
|
|
"@types/angular-route": "^1.7.2",
|
|
"@types/jasmine": "~4.0.0",
|
|
"@types/node": "^16.11.35",
|
|
"jasmine-core": "~4.1.0",
|
|
"jasmine-marbles": "~0.9.2",
|
|
"jasmine-spec-reporter": "~7.0.0",
|
|
"karma": "~6.3.0",
|
|
"karma-chrome-launcher": "~3.1.0",
|
|
"karma-coverage": "~2.2.0",
|
|
"karma-jasmine": "~5.0.0",
|
|
"karma-jasmine-html-reporter": "~2.0.0",
|
|
"protractor": "~7.0.0",
|
|
"ts-node": "~10.8.0",
|
|
"typescript": "~4.7.2"
|
|
}
|
|
}
|