Skip to content

Commit a31696b

Browse files
NathanWalkerclaude
andcommitted
chore: upgrade templates to TypeScript 6
- Bump typescript to ~6.0.0 in all 23 TS-using templates - Remove deprecated baseUrl from tsconfigs (TS5101 hard error in TS 6); make paths mappings relative for identical resolution - Add explicit "strict": false where templates relied on the TS <=5.x default (TS 6 defaults strict on) - Add skipLibCheck to react templates; drop no-op downlevelIteration - Widen typeRoots and add @types/node where types: ["node"] could not resolve (pre-existing TS2688) - Upgrade Angular templates to @angular ~22.0.0, @nativescript/angular ^21.0.0, zone.js ~0.15.0 (Angular 22 is the only line whose peer range allows TypeScript 6) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 961c39f commit a31696b

46 files changed

Lines changed: 169 additions & 175 deletions

File tree

Some content is hidden

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

‎packages/template-blank-ng/package.json‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,27 @@
4040
"url": "https://github.com/NativeScript/NativeScript/issues"
4141
},
4242
"dependencies": {
43-
"@angular/animations": "~20.2.0",
44-
"@angular/common": "~20.2.0",
45-
"@angular/compiler": "~20.2.0",
46-
"@angular/core": "~20.2.0",
47-
"@angular/forms": "~20.2.0",
48-
"@angular/platform-browser": "~20.2.0",
49-
"@angular/platform-browser-dynamic": "~20.2.0",
50-
"@angular/router": "~20.2.0",
51-
"@nativescript/angular": "^20.0.0",
43+
"@angular/animations": "~22.0.0",
44+
"@angular/common": "~22.0.0",
45+
"@angular/compiler": "~22.0.0",
46+
"@angular/core": "~22.0.0",
47+
"@angular/forms": "~22.0.0",
48+
"@angular/platform-browser": "~22.0.0",
49+
"@angular/platform-browser-dynamic": "~22.0.0",
50+
"@angular/router": "~22.0.0",
51+
"@nativescript/angular": "^21.0.0",
5252
"@nativescript/core": "~9.0.0",
5353
"rxjs": "~7.8.0",
5454
"zone.js": "~0.15.0"
5555
},
5656
"devDependencies": {
57-
"@angular-devkit/build-angular": "~20.2.0",
58-
"@angular/compiler-cli": "~20.2.0",
57+
"@angular-devkit/build-angular": "~22.0.0",
58+
"@angular/compiler-cli": "~22.0.0",
5959
"@nativescript/tailwind": "^2.1.0",
6060
"@nativescript/types": "~9.0.0",
6161
"@nativescript/webpack": "~5.0.25",
62-
"@ngtools/webpack": "~20.2.0",
62+
"@ngtools/webpack": "~22.0.0",
6363
"tailwindcss": "~3.4.0",
64-
"typescript": "~5.8.0"
64+
"typescript": "~6.0.0"
6565
}
6666
}

‎packages/template-blank-ng/tsconfig.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"strict": false,
34
"module": "esnext",
45
"target": "ES2020",
56
"moduleResolution": "bundler",
@@ -9,10 +10,9 @@
910
"noEmitOnError": true,
1011
"skipLibCheck": true,
1112
"lib": ["ESNext", "dom"],
12-
"baseUrl": ".",
1313
"paths": {
14-
"~/*": ["src/*"],
15-
"@/*": ["src/*"]
14+
"~/*": ["./src/*"],
15+
"@/*": ["./src/*"]
1616
}
1717
},
1818
"include": ["src/tests/**/*.ts", "src/**/*.ios.ts", "src/**/*.android.ts"],

‎packages/template-blank-react-vision/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@nativescript/webpack": "~5.0.25",
5353
"@types/react": "npm:types-react-without-jsx-intrinsics@^18.0.17",
5454
"tailwindcss": "~3.4.0",
55-
"typescript": "~5.4.0"
55+
"typescript": "~6.0.0"
5656
},
5757
"gitHead": "1350d382fb4b0ed4c6e9685df909518b2688e004",
5858
"readme": "NativeScript Application"

‎packages/template-blank-react-vision/tsconfig.json‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
22
"compilerOptions": {
3+
"strict": false,
34
"module": "esnext",
45
"target": "ES2020",
56
"moduleResolution": "bundler",
67
"experimentalDecorators": true,
78
"emitDecoratorMetadata": true,
89
"noEmitHelpers": true,
910
"noEmitOnError": true,
11+
"skipLibCheck": true,
1012
"jsx": "react",
1113
"lib": ["ESNext", "dom"],
12-
"baseUrl": ".",
1314
"paths": {
14-
"~/*": ["src/*"],
15-
"@/*": ["src/*"]
15+
"~/*": ["./src/*"],
16+
"@/*": ["./src/*"]
1617
}
1718
},
1819
"include": ["./src/**/*.tsx?"],

‎packages/template-blank-react/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@nativescript/types": "~9.0.0",
4949
"@nativescript/webpack": "~5.0.28",
5050
"@types/react": "npm:types-react-without-jsx-intrinsics@^18.0.17",
51-
"typescript": "~5.4.0"
51+
"typescript": "~6.0.0"
5252
},
5353
"overrides": {
5454
"@nativescript/core": "~9.0.0"

‎packages/template-blank-react/tsconfig.json‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
22
"compilerOptions": {
3+
"strict": false,
34
"module": "esnext",
45
"target": "ES2020",
56
"moduleResolution": "bundler",
67
"experimentalDecorators": true,
78
"emitDecoratorMetadata": true,
89
"noEmitHelpers": true,
910
"noEmitOnError": true,
11+
"skipLibCheck": true,
1012
"jsx": "react",
1113
"lib": ["ESNext", "dom"],
12-
"baseUrl": ".",
1314
"paths": {
14-
"~/*": ["src/*"],
15-
"@/*": ["src/*"]
15+
"~/*": ["./src/*"],
16+
"@/*": ["./src/*"]
1617
}
1718
},
1819
"include": ["./src/**/*.tsx?"],

‎packages/template-blank-solid-ts/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@
6060
"babel-preset-solid": "^1.8.19",
6161
"solid-refresh": "^0.7.5",
6262
"tailwindcss": "~3.4.3",
63-
"typescript": "~5.9.0"
63+
"typescript": "~6.0.0"
6464
}
6565
}

‎packages/template-blank-solid-ts/tsconfig.json‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
"lib": ["ESNext", "DOM"],
88
"jsx": "preserve",
99
"jsxImportSource": "@nativescript-dom/solidjs-types",
10-
"baseUrl": ".",
1110
"paths": {
12-
"~/*": ["src/*"],
13-
"@/*": ["src/*"]
11+
"~/*": ["./src/*"],
12+
"@/*": ["./src/*"]
1413
},
1514
"noEmit": true,
1615
"allowJs": true,

‎packages/template-blank-solid-vision/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@
6262
"patch-package": "^8.0.0",
6363
"solid-refresh": "^0.5.3",
6464
"tailwindcss": "~3.4.0",
65-
"typescript": "~5.4.0"
65+
"typescript": "~6.0.0"
6666
}
6767
}

‎packages/template-blank-solid-vision/tsconfig.json‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
"jsxImportSource": "@nativescript-dom/solidjs-types",
1111
"noEmitHelpers": true,
1212
"importHelpers": true,
13-
"baseUrl": ".",
1413
"paths": {
15-
"~/*": ["src/*"],
16-
"@/*": ["src/*"]
14+
"~/*": ["./src/*"],
15+
"@/*": ["./src/*"]
1716
},
1817
"allowJs": true,
1918
"types": ["node", "@nativescript-dom/core-types", "@nativescript-dom/solidjs-types"],
@@ -23,7 +22,6 @@
2322
"emitDecoratorMetadata": true,
2423
"skipLibCheck": true,
2524
"outDir": "dist",
26-
"downlevelIteration": true,
2725
"maxNodeModuleJsDepth": 5
2826
},
2927
"include": ["src"],

0 commit comments

Comments
 (0)