Skip to content

Commit 33e772e

Browse files
msgoloborodovMihail Goloborodov
andauthored
chore: update to Angular 15 (#782)
Co-authored-by: Mihail Goloborodov <[email protected]>
1 parent 60b6f27 commit 33e772e

File tree

4 files changed

+6054
-7045
lines changed

4 files changed

+6054
-7045
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
},
2121
"private": true,
2222
"dependencies": {
23-
"@angular/common": "14.2.2",
24-
"@angular/compiler": "14.2.2",
25-
"@angular/core": "14.2.2",
26-
"@angular/forms": "14.2.2",
27-
"@angular/platform-browser": "14.2.2",
28-
"@angular/platform-browser-dynamic": "14.2.2",
23+
"@angular/common": "15.0.4",
24+
"@angular/compiler": "15.0.4",
25+
"@angular/core": "15.0.4",
26+
"@angular/forms": "15.0.4",
27+
"@angular/platform-browser": "15.0.4",
28+
"@angular/platform-browser-dynamic": "15.0.4",
2929
"@uirouter/angular": "^10.0.0",
3030
"@uirouter/core": "6.0.8",
3131
"@uirouter/rx": "1.0.0",
@@ -38,10 +38,10 @@
3838
"zone.js": "~0.11.4"
3939
},
4040
"devDependencies": {
41-
"@angular-devkit/build-angular": "^14.2.3",
42-
"@angular/animations": "14.2.2",
43-
"@angular/cli": "^14.2.3",
44-
"@angular/compiler-cli": "14.2.2",
41+
"@angular-devkit/build-angular": "^15.0.4",
42+
"@angular/animations": "15.0.4",
43+
"@angular/cli": "^15.0.4",
44+
"@angular/compiler-cli": "15.0.4",
4545
"@types/jasmine": "~3.10.2",
4646
"@uirouter/cypress-runner": "^2.0.0",
4747
"fibers": "5.0.0",
@@ -50,4 +50,4 @@
5050
"tslint": "6.1.3",
5151
"typescript": "~4.8.3"
5252
}
53-
}
53+
}

src/test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414

1515
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
1616
declare var __karma__: any;
17-
declare var require: any;
1817

1918
// Prevent Karma from running prematurely.
2019
__karma__.loaded = function () {};
@@ -24,9 +23,5 @@ getTestBed().initTestEnvironment(
2423
BrowserDynamicTestingModule,
2524
platformBrowserDynamicTesting()
2625
);
27-
// Then we find all the tests.
28-
const context = require.context('./', true, /\.spec\.ts$/);
29-
// And load the modules.
30-
context.keys().map(context);
3126
// Finally, start Karma to run the tests.
3227
__karma__.start();

src/tsconfig.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,21 @@
44
"declaration": false,
55
"downlevelIteration": true,
66
"experimentalDecorators": true,
7-
"lib": ["es6", "dom"],
7+
"lib": [
8+
"es6",
9+
"dom"
10+
],
811
"mapRoot": "./",
912
"module": "es2020",
1013
"moduleResolution": "node",
1114
"outDir": "../dist/out-tsc",
1215
"sourceMap": true,
13-
"target": "es2020",
16+
"target": "ES2022",
1417
"skipLibCheck": true,
1518
"typeRoots": [
1619
"../node_modules/@types"
17-
]
20+
],
21+
"useDefineForClassFields": false
1822
},
1923
"files": [
2024
"main.ts",

0 commit comments

Comments
 (0)