Skip to content

Commit d279c42

Browse files
committed
build: Update TS config for v6
1 parent 131fb1e commit d279c42

43 files changed

Lines changed: 498 additions & 384 deletions

Some content is hidden

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

package-lock.json

Lines changed: 249 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/quickstart/steps/01/README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,20 +175,24 @@ 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,
183-
"strict": true,
184185
"strictPropertyInitialization": false,
185-
"rootDir": "webapp",
186-
"baseUrl": "./",
186+
"rootDir": "./webapp",
187187
"paths": {
188-
"ui5/quickstart/*": ["webapp/*"]
188+
"ui5/quickstart/*": [
189+
"./webapp/*"
190+
]
189191
}
190192
},
191-
"include": ["webapp/**/*"]
193+
"include": [
194+
"./webapp/**/*"
195+
]
192196
}
193197
```
194198

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
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,
8-
"strict": true,
910
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
11+
"rootDir": "./webapp",
1212
"paths": {
1313
"ui5/quickstart/*": [
14-
"webapp/*"
14+
"./webapp/*"
1515
]
1616
}
1717
},
1818
"include": [
19-
"webapp/**/*"
19+
"./webapp/**/*"
2020
]
2121
}
Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
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+
"strictPropertyInitialization": false,
11+
"rootDir": "./webapp",
12+
"paths": {
13+
"ui5/quickstart/*": [
14+
"./webapp/*"
15+
]
16+
}
17+
},
18+
"include": [
19+
"./webapp/**/*"
20+
]
1721
}
Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
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+
"strictPropertyInitialization": false,
11+
"rootDir": "./webapp",
12+
"paths": {
13+
"ui5/quickstart/*": [
14+
"./webapp/*"
15+
]
16+
}
17+
},
18+
"include": [
19+
"./webapp/**/*"
20+
]
1721
}

packages/walkthrough/steps/02/README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,17 @@ 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,
82-
"strict": true,
8381
"strictPropertyInitialization": false,
84-
"rootDir": "webapp",
85-
"baseUrl": "./",
82+
"rootDir": "./webapp",
8683
"paths": {
87-
"ui5/walkthrough/*": ["webapp/*"]
84+
"ui5/walkthrough/*": ["./webapp/*"]
8885
}
8986
},
90-
"include": ["webapp/**/*"]
87+
"include": ["./webapp/**/*"]
9188
}
9289
```
9390

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

112109
- `"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.
113110

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/*`
111+
- `"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/*`
115112

116113
***
117114

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
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,
8-
"strict": true,
97
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
8+
"rootDir": "./webapp",
129
"paths": {
13-
"ui5/walkthrough/*": ["webapp/*"]
10+
"ui5/walkthrough/*": ["./webapp/*"]
1411
}
1512
},
16-
"include": ["webapp/**/*"]
13+
"include": ["./webapp/**/*"]
1714
}
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
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,
8-
"strict": true,
97
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
8+
"rootDir": "./webapp",
129
"paths": {
13-
"ui5/walkthrough/*": ["webapp/*"]
10+
"ui5/walkthrough/*": ["./webapp/*"]
1411
}
1512
},
16-
"include": ["webapp/**/*"]
13+
"include": ["./webapp/**/*"]
1714
}
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
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,
8-
"strict": true,
97
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
8+
"rootDir": "./webapp",
129
"paths": {
13-
"ui5/walkthrough/*": ["webapp/*"]
10+
"ui5/walkthrough/*": ["./webapp/*"]
1411
}
1512
},
16-
"include": ["webapp/**/*"]
13+
"include": ["./webapp/**/*"]
1714
}
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
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,
8-
"strict": true,
97
"strictPropertyInitialization": false,
10-
"rootDir": "webapp",
11-
"baseUrl": "./",
8+
"rootDir": "./webapp",
129
"paths": {
13-
"ui5/walkthrough/*": ["webapp/*"]
10+
"ui5/walkthrough/*": ["./webapp/*"]
1411
}
1512
},
16-
"include": ["webapp/**/*"]
13+
"include": ["./webapp/**/*"]
1714
}

0 commit comments

Comments
 (0)