Skip to content

Commit 198f800

Browse files
benmccannRich-Harrisignatiusmb
authored
Upgrade to TypeScript 4.6 (#4190)
* Upgrade to TypeScript 4.6 * Update .changeset/polite-laws-cheat.md Co-authored-by: Ignatius Bagus <[email protected]> * remove unnecessary path prefixes * remove one more prefix * use sync Co-authored-by: Rich Harris <[email protected]> Co-authored-by: Ignatius Bagus <[email protected]>
1 parent 255e0d2 commit 198f800

File tree

14 files changed

+127
-138
lines changed

14 files changed

+127
-138
lines changed

.changeset/polite-laws-cheat.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'create-svelte': patch
3+
'@sveltejs/kit': patch
4+
---
5+
6+
Upgrade to TypeScript 4.6

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"playwright-chromium": "^1.19.1",
3939
"prettier": "^2.5.0",
4040
"rollup": "^2.60.2",
41-
"typescript": "~4.5.5"
41+
"typescript": "~4.6.2"
4242
},
4343
"type": "module"
4444
}

packages/adapter-cloudflare/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"moduleResolution": "node",
1010
"allowSyntheticDefaultImports": true
1111
},
12-
"include": ["index.js", "files"]
12+
"include": ["./index.js", "./files"]
1313
}

packages/create-svelte/shared/+typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch"
55
},
66
"devDependencies": {
7-
"typescript": "~4.5.4",
7+
"typescript": "~4.6.2",
88
"tslib": "^2.3.1",
99
"svelte-check": "^2.2.6",
1010
"svelte-preprocess": "^4.10.1"

packages/create-svelte/templates/default/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@sveltejs/kit": "workspace:*",
1414
"svelte": "^3.44.0",
1515
"svelte-preprocess": "^4.9.8",
16-
"typescript": "~4.5.5"
16+
"typescript": "~4.6.2"
1717
},
1818
"type": "module",
1919
"dependencies": {

packages/create-svelte/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"moduleResolution": "node",
1010
"allowSyntheticDefaultImports": true
1111
},
12-
"include": ["scripts/**/*", "index.js", "bin.js", "utils.js"]
12+
"include": ["./scripts/**/*", "./index.js", "./bin.js", "./utils.js"]
1313
}

packages/kit/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@
6262
"lint": "eslint --ignore-path .gitignore --ignore-pattern \"src/packaging/test/**\" \"{src,test}/**/*.{ts,mjs,js,svelte}\" && npm run check-format",
6363
"check": "tsc && npm run check:integration && npm run check:prerendering",
6464
"check:integration": "npm run check:integration:amp && npm run check:integration:basics && npm run check:integration:options && npm run check:integration:options-2",
65-
"check:integration:amp": "cd test/apps/amp && pnpm check",
66-
"check:integration:basics": "cd test/apps/basics && pnpm check",
67-
"check:integration:options": "cd test/apps/options && pnpm check",
68-
"check:integration:options-2": "cd test/apps/options-2 && pnpm check",
65+
"check:integration:amp": "cd test/apps/amp && pnpm sync && pnpm check",
66+
"check:integration:basics": "cd test/apps/basics && pnpm sync && pnpm check",
67+
"check:integration:options": "cd test/apps/options && pnpm sync && pnpm check",
68+
"check:integration:options-2": "cd test/apps/options-2 && pnpm sync && pnpm check",
6969
"check:prerendering": "npm run check:prerendering:basics && npm run check:prerendering:options",
70-
"check:prerendering:basics": "cd test/prerendering/basics && pnpm check",
71-
"check:prerendering:options": "cd test/prerendering/options && pnpm check",
70+
"check:prerendering:basics": "cd test/prerendering/basics && pnpm sync && pnpm check",
71+
"check:prerendering:options": "cd test/prerendering/options && pnpm sync && pnpm check",
7272
"format": "npm run check-format -- --write",
7373
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore",
7474
"prepublishOnly": "npm run build",

packages/kit/test/apps/amp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"cross-env": "^7.0.3",
1717
"svelte": "^3.43.0",
1818
"svelte-check": "^2.2.10",
19-
"typescript": "~4.5.5"
19+
"typescript": "~4.6.2"
2020
},
2121
"type": "module"
2222
}

packages/kit/test/apps/basics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"cross-env": "^7.0.3",
1717
"svelte": "^3.43.0",
1818
"svelte-check": "^2.2.10",
19-
"typescript": "~4.5.5"
19+
"typescript": "~4.6.2"
2020
},
2121
"type": "module"
2222
}

packages/kit/test/apps/options-2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"cross-env": "^7.0.3",
1818
"svelte": "^3.43.0",
1919
"svelte-check": "^2.2.10",
20-
"typescript": "~4.5.5"
20+
"typescript": "~4.6.2"
2121
},
2222
"type": "module"
2323
}

0 commit comments

Comments
 (0)