Skip to content

Commit d683944

Browse files
authored
upgrade to angular 20 (#28)
fixes #26
1 parent 9443942 commit d683944

File tree

4 files changed

+1112
-4245
lines changed

4 files changed

+1112
-4245
lines changed

angular.json

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"prefix": "lib",
1414
"architect": {
1515
"build": {
16-
"builder": "@angular-devkit/build-angular:ng-packagr",
16+
"builder": "@angular/build:ng-packagr",
1717
"options": {
1818
"project": "projects/ngx-json-treeview/ng-package.json"
1919
},
@@ -28,7 +28,7 @@
2828
"defaultConfiguration": "production"
2929
},
3030
"test": {
31-
"builder": "@angular-devkit/build-angular:karma",
31+
"builder": "@angular/build:karma",
3232
"options": {
3333
"tsConfig": "projects/ngx-json-treeview/tsconfig.spec.json",
3434
"polyfills": ["zone.js", "zone.js/testing"]
@@ -48,7 +48,7 @@
4848
"prefix": "app",
4949
"architect": {
5050
"build": {
51-
"builder": "@angular-devkit/build-angular:application",
51+
"builder": "@angular/build:application",
5252
"options": {
5353
"outputPath": "dist/demo",
5454
"index": "projects/demo/src/index.html",
@@ -90,7 +90,7 @@
9090
"defaultConfiguration": "production"
9191
},
9292
"serve": {
93-
"builder": "@angular-devkit/build-angular:dev-server",
93+
"builder": "@angular/build:dev-server",
9494
"configurations": {
9595
"production": {
9696
"buildTarget": "demo:build:production"
@@ -102,10 +102,10 @@
102102
"defaultConfiguration": "development"
103103
},
104104
"extract-i18n": {
105-
"builder": "@angular-devkit/build-angular:extract-i18n"
105+
"builder": "@angular/build:extract-i18n"
106106
},
107107
"test": {
108-
"builder": "@angular-devkit/build-angular:karma",
108+
"builder": "@angular/build:karma",
109109
"options": {
110110
"polyfills": ["zone.js", "zone.js/testing"],
111111
"tsConfig": "projects/demo/tsconfig.spec.json",
@@ -122,5 +122,31 @@
122122
}
123123
}
124124
}
125+
},
126+
"schematics": {
127+
"@schematics/angular:component": {
128+
"type": "component"
129+
},
130+
"@schematics/angular:directive": {
131+
"type": "directive"
132+
},
133+
"@schematics/angular:service": {
134+
"type": "service"
135+
},
136+
"@schematics/angular:guard": {
137+
"typeSeparator": "."
138+
},
139+
"@schematics/angular:interceptor": {
140+
"typeSeparator": "."
141+
},
142+
"@schematics/angular:module": {
143+
"typeSeparator": "."
144+
},
145+
"@schematics/angular:pipe": {
146+
"typeSeparator": "."
147+
},
148+
"@schematics/angular:resolver": {
149+
"typeSeparator": "."
150+
}
125151
}
126152
}

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@
3232
},
3333
"private": true,
3434
"dependencies": {
35-
"@angular/animations": "^19.0.0",
36-
"@angular/cdk": "^19.0.0",
37-
"@angular/common": "^19.0.0",
38-
"@angular/compiler": "^19.0.0",
39-
"@angular/core": "^19.0.0",
40-
"@angular/forms": "^19.0.0",
41-
"@angular/platform-browser": "^19.0.0",
42-
"@angular/platform-browser-dynamic": "^19.0.0",
43-
"@angular/router": "^19.0.0",
35+
"@angular/animations": "^20.0.1",
36+
"@angular/cdk": "^20.0.2",
37+
"@angular/common": "^20.0.1",
38+
"@angular/compiler": "^20.0.1",
39+
"@angular/core": "^20.0.1",
40+
"@angular/forms": "^20.0.1",
41+
"@angular/platform-browser": "^20.0.1",
42+
"@angular/platform-browser-dynamic": "^20.0.1",
43+
"@angular/router": "^20.0.1",
4444
"rxjs": "~7.8.0",
4545
"tslib": "^2.3.0",
4646
"zone.js": "~0.15.0"
4747
},
4848
"devDependencies": {
49-
"@angular-devkit/build-angular": "^19.0.0",
50-
"@angular/cli": "^19.0.0",
51-
"@angular/compiler-cli": "^19.0.0",
49+
"@angular/build": "^20.0.1",
50+
"@angular/cli": "^20.0.1",
51+
"@angular/compiler-cli": "^20.0.1",
5252
"@types/jasmine": "~5.1.0",
5353
"cpy-cli": "^5.0.0",
5454
"jasmine-core": "~5.2.0",
@@ -57,11 +57,11 @@
5757
"karma-coverage": "~2.2.0",
5858
"karma-jasmine": "~5.1.0",
5959
"karma-jasmine-html-reporter": "~2.1.0",
60-
"ng-packagr": "^19.0.0",
60+
"ng-packagr": "^20.0.0",
6161
"prettier": "^3.5.3",
6262
"prettier-plugin-css-order": "^2.1.2",
6363
"prettier-plugin-organize-imports": "^4.1.0",
64-
"typescript": "~5.5.2"
64+
"typescript": "~5.8.3"
6565
},
6666
"packageManager": "[email protected]+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808"
6767
}

0 commit comments

Comments
 (0)