Skip to content

Commit 0211134

Browse files
committed
upgrade angular 13
1 parent e1fea9f commit 0211134

File tree

5 files changed

+2031
-153
lines changed

5 files changed

+2031
-153
lines changed

packages/angular/ng-package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
"$schema": "node_modules/ng-packagr/ng-package.schema.json",
33
"dest": "build",
44
"lib": {
5-
"entryFile": "src/index.ts",
6-
"umdModuleIds": {
7-
"@sentry/browser": "Sentry",
8-
"@sentry/utils": "Sentry.util",
9-
"@sentry/core": "Sentry.core"
10-
}
5+
"entryFile": "src/index.ts"
116
},
127
"whitelistedNonPeerDependencies": ["@sentry/browser", "@sentry/core", "@sentry/utils", "@sentry/types", "tslib"],
138
"assets": ["README.md", "LICENSE"]

packages/angular/package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@
2525
"tslib": "^2.4.1"
2626
},
2727
"devDependencies": {
28-
"@angular-devkit/build-angular": "~12.2.18",
29-
"@angular/cli": "^12.2.18",
30-
"@angular/common": "~12.2.17",
31-
"@angular/compiler": "^12.2.17",
32-
"@angular/compiler-cli": "~12.2.17",
33-
"@angular/core": "~12.2.17",
34-
"@angular/platform-browser": "~12.2.17",
35-
"@angular/platform-browser-dynamic": "~12.2.17",
36-
"@angular/router": "~12.2.17",
37-
"ng-packagr": "^12.2.7",
28+
"@angular-devkit/build-angular": "~13.3.11",
29+
"@angular/cli": "^13.3.11",
30+
"@angular/common": "~13.4.0",
31+
"@angular/compiler": "^13.4.0",
32+
"@angular/compiler-cli": "~13.4.0",
33+
"@angular/core": "~13.4.0",
34+
"@angular/platform-browser": "~13.4.0",
35+
"@angular/platform-browser-dynamic": "~13.4.0",
36+
"@angular/router": "~13.4.0",
37+
"ng-packagr": "^13.3.1",
3838
"rxjs": "6.5.5",
39-
"typescript": "4.3.5",
39+
"typescript": "4.6.4",
4040
"zone.js": "~0.11.4"
4141
},
4242
"scripts": {
@@ -53,6 +53,7 @@
5353
"lint": "eslint . --format stylish",
5454
"test": "yarn test:unit",
5555
"test:unit": "jest",
56+
"test2": "yarn node --experimental-vm-modules $(yarn bin jest)",
5657
"test:unit:watch": "jest --watch",
5758
"yalc:publish": "yalc publish build --push --sig"
5859
},
@@ -76,4 +77,4 @@
7677
}
7778
}
7879
}
79-
}
80+
}

packages/angular/setup-jest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import 'zone.js';
22
import 'zone.js/testing';
33

4-
import { TestBed } from '@angular/core/testing';
4+
import { getTestBed } from '@angular/core/testing';
55
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
66

7-
TestBed.resetTestEnvironment();
8-
TestBed.initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
7+
getTestBed().resetTestEnvironment();
8+
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());

packages/angular/tsconfig.test.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
"compilerOptions": {
77
// should include all types from `./tsconfig.json` plus types for all test frameworks used
8-
"types": ["jest"]
8+
"types": ["jest"],
9+
"module": "CommonJs",
910

1011
// other package-specific, test-specific options
1112
}

0 commit comments

Comments
 (0)