Skip to content

Commit 6479423

Browse files
committed
build: Update TS config for v6
1 parent a94408f commit 6479423

42 files changed

Lines changed: 255 additions & 311 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/quickstart/steps/01/README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,20 +175,26 @@ We specify the compiler options as follow:
175175
```json
176176
{
177177
"compilerOptions": {
178-
"target": "es2023",
179-
"module": "es2022",
180-
"moduleResolution": "node",
178+
"target": "es2025",
179+
"types": [
180+
"node",
181+
"@types/openui5"
182+
],
181183
"skipLibCheck": true,
182184
"allowJs": true,
183185
"strict": true,
186+
"strictNullChecks": false,
184187
"strictPropertyInitialization": false,
185-
"rootDir": "webapp",
186-
"baseUrl": "./",
188+
"rootDir": "./webapp",
187189
"paths": {
188-
"ui5/quickstart/*": ["webapp/*"]
190+
"ui5/quickstart/*": [
191+
"./webapp/*"
192+
]
189193
}
190194
},
191-
"include": ["webapp/**/*"]
195+
"include": [
196+
"./webapp/**/*"
197+
]
192198
}
193199
```
194200

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
{
22
"compilerOptions": {
3-
"target": "es2023",
4-
"module": "es2022",
5-
"moduleResolution": "node",
3+
"target": "es2025",
4+
"types": [
5+
"node",
6+
"@types/openui5"
7+
],
68
"skipLibCheck": true,
79
"allowJs": true,
810
"strict": true,
11+
"strictNullChecks": false,
912
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
13+
"rootDir": "./webapp",
1214
"paths": {
1315
"ui5/quickstart/*": [
14-
"webapp/*"
16+
"./webapp/*"
1517
]
1618
}
1719
},
1820
"include": [
19-
"webapp/**/*"
21+
"./webapp/**/*"
2022
]
2123
}
Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
{
2-
"compilerOptions": {
3-
"target": "es2023",
4-
"module": "es2022",
5-
"moduleResolution": "node",
6-
"skipLibCheck": true,
7-
"allowJs": true,
8-
"strict": true,
9-
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
12-
"paths": {
13-
"ui5/quickstart/*": ["webapp/*"]
14-
}
15-
},
16-
"include": ["webapp/**/*"]
2+
"compilerOptions": {
3+
"target": "es2025",
4+
"types": [
5+
"node",
6+
"@types/openui5"
7+
],
8+
"skipLibCheck": true,
9+
"allowJs": true,
10+
"strict": true,
11+
"strictNullChecks": false,
12+
"strictPropertyInitialization": false,
13+
"rootDir": "./webapp",
14+
"paths": {
15+
"ui5/quickstart/*": [
16+
"./webapp/*"
17+
]
18+
}
19+
},
20+
"include": [
21+
"./webapp/**/*"
22+
]
1723
}
Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
{
2-
"compilerOptions": {
3-
"target": "es2023",
4-
"module": "es2022",
5-
"moduleResolution": "node",
6-
"skipLibCheck": true,
7-
"allowJs": true,
8-
"strict": true,
9-
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
12-
"paths": {
13-
"ui5/quickstart/*": ["webapp/*"]
14-
}
15-
},
16-
"include": ["webapp/**/*"]
2+
"compilerOptions": {
3+
"target": "es2025",
4+
"types": [
5+
"node",
6+
"@types/openui5"
7+
],
8+
"skipLibCheck": true,
9+
"allowJs": true,
10+
"strict": true,
11+
"strictNullChecks": false,
12+
"strictPropertyInitialization": false,
13+
"rootDir": "./webapp",
14+
"paths": {
15+
"ui5/quickstart/*": [
16+
"./webapp/*"
17+
]
18+
}
19+
},
20+
"include": [
21+
"./webapp/**/*"
22+
]
1723
}

packages/walkthrough/steps/02/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,18 @@ We specify the compiler options as follow:
7474
```json
7575
{
7676
"compilerOptions": {
77-
"target": "es2023",
78-
"module": "es2022",
79-
"moduleResolution": "node",
77+
"target": "es2025",
78+
"types": ["node", "@types/openui5"],
8079
"skipLibCheck": true,
8180
"allowJs": true,
8281
"strict": true,
8382
"strictPropertyInitialization": false,
84-
"rootDir": "webapp",
85-
"baseUrl": "./",
83+
"rootDir": "./webapp",
8684
"paths": {
87-
"ui5/walkthrough/*": ["webapp/*"]
85+
"ui5/walkthrough/*": ["./webapp/*"]
8886
}
8987
},
90-
"include": ["webapp/**/*"]
88+
"include": ["./webapp/**/*"]
9189
}
9290
```
9391

@@ -111,7 +109,7 @@ Let's go through the compiler options specified in the file:
111109

112110
- `"baseUrl": "./"`: The `baseUrl` parameter is used to resolve non-relative module names. We specified that non-relative module names are resolved relative to the location of the `tsconfig.json` file.
113111

114-
- `"paths": { "ui5/walkthrough/*": ["webapp/*"] }`: The `path` paramter specifies path mappings for module resolution. It allows you to define custom module paths that map to specific directories or files. In this case, it maps the module path `ui5/walkthrough/*`
112+
- `"paths": { "ui5/walkthrough/*": ["./webapp/*"] }`: The `path` paramter specifies path mappings for module resolution. It allows you to define custom module paths that map to specific directories or files. In this case, it maps the module path `ui5/walkthrough/*`
115113

116114
***
117115

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
22
"compilerOptions": {
3-
"target": "es2023",
4-
"module": "es2022",
5-
"moduleResolution": "node",
3+
"target": "es2025",
4+
"types": ["node", "@types/openui5"],
65
"skipLibCheck": true,
76
"allowJs": true,
87
"strict": true,
98
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
9+
"rootDir": "./webapp",
1210
"paths": {
13-
"ui5/walkthrough/*": ["webapp/*"]
11+
"ui5/walkthrough/*": ["./webapp/*"]
1412
}
1513
},
16-
"include": ["webapp/**/*"]
14+
"include": ["./webapp/**/*"]
1715
}
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
22
"compilerOptions": {
3-
"target": "es2023",
4-
"module": "es2022",
5-
"moduleResolution": "node",
3+
"target": "es2025",
4+
"types": ["node", "@types/openui5"],
65
"skipLibCheck": true,
76
"allowJs": true,
87
"strict": true,
98
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
9+
"rootDir": "./webapp",
1210
"paths": {
13-
"ui5/walkthrough/*": ["webapp/*"]
11+
"ui5/walkthrough/*": ["./webapp/*"]
1412
}
1513
},
16-
"include": ["webapp/**/*"]
14+
"include": ["./webapp/**/*"]
1715
}
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
22
"compilerOptions": {
3-
"target": "es2023",
4-
"module": "es2022",
5-
"moduleResolution": "node",
3+
"target": "es2025",
4+
"types": ["node", "@types/openui5"],
65
"skipLibCheck": true,
76
"allowJs": true,
87
"strict": true,
98
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
9+
"rootDir": "./webapp",
1210
"paths": {
13-
"ui5/walkthrough/*": ["webapp/*"]
11+
"ui5/walkthrough/*": ["./webapp/*"]
1412
}
1513
},
16-
"include": ["webapp/**/*"]
14+
"include": ["./webapp/**/*"]
1715
}
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
22
"compilerOptions": {
3-
"target": "es2023",
4-
"module": "es2022",
5-
"moduleResolution": "node",
3+
"target": "es2025",
4+
"types": ["node", "@types/openui5"],
65
"skipLibCheck": true,
76
"allowJs": true,
87
"strict": true,
98
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
9+
"rootDir": "./webapp",
1210
"paths": {
13-
"ui5/walkthrough/*": ["webapp/*"]
11+
"ui5/walkthrough/*": ["./webapp/*"]
1412
}
1513
},
16-
"include": ["webapp/**/*"]
14+
"include": ["./webapp/**/*"]
1715
}
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
22
"compilerOptions": {
3-
"target": "es2023",
4-
"module": "es2022",
5-
"moduleResolution": "node",
3+
"target": "es2025",
4+
"types": ["node", "@types/openui5"],
65
"skipLibCheck": true,
76
"allowJs": true,
87
"strict": true,
98
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
9+
"rootDir": "./webapp",
1210
"paths": {
13-
"ui5/walkthrough/*": ["webapp/*"]
11+
"ui5/walkthrough/*": ["./webapp/*"]
1412
}
1513
},
16-
"include": ["webapp/**/*"]
14+
"include": ["./webapp/**/*"]
1715
}

0 commit comments

Comments
 (0)