Skip to content

Commit

Permalink
Upgrade to TypeScript 4.6 (#4190)
Browse files Browse the repository at this point in the history
* Upgrade to TypeScript 4.6

* Update .changeset/polite-laws-cheat.md

Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>

* remove unnecessary path prefixes

* remove one more prefix

* use sync

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>
  • Loading branch information
3 people authored Mar 3, 2022
1 parent 255e0d2 commit 198f800
Show file tree
Hide file tree
Showing 14 changed files with 127 additions and 138 deletions.
6 changes: 6 additions & 0 deletions .changeset/polite-laws-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'create-svelte': patch
'@sveltejs/kit': patch
---

Upgrade to TypeScript 4.6
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"playwright-chromium": "^1.19.1",
"prettier": "^2.5.0",
"rollup": "^2.60.2",
"typescript": "~4.5.5"
"typescript": "~4.6.2"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"moduleResolution": "node",
"allowSyntheticDefaultImports": true
},
"include": ["index.js", "files"]
"include": ["./index.js", "./files"]
}
2 changes: 1 addition & 1 deletion packages/create-svelte/shared/+typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch"
},
"devDependencies": {
"typescript": "~4.5.4",
"typescript": "~4.6.2",
"tslib": "^2.3.1",
"svelte-check": "^2.2.6",
"svelte-preprocess": "^4.10.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-svelte/templates/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@sveltejs/kit": "workspace:*",
"svelte": "^3.44.0",
"svelte-preprocess": "^4.9.8",
"typescript": "~4.5.5"
"typescript": "~4.6.2"
},
"type": "module",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-svelte/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"moduleResolution": "node",
"allowSyntheticDefaultImports": true
},
"include": ["scripts/**/*", "index.js", "bin.js", "utils.js"]
"include": ["./scripts/**/*", "./index.js", "./bin.js", "./utils.js"]
}
12 changes: 6 additions & 6 deletions packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@
"lint": "eslint --ignore-path .gitignore --ignore-pattern \"src/packaging/test/**\" \"{src,test}/**/*.{ts,mjs,js,svelte}\" && npm run check-format",
"check": "tsc && npm run check:integration && npm run check:prerendering",
"check:integration": "npm run check:integration:amp && npm run check:integration:basics && npm run check:integration:options && npm run check:integration:options-2",
"check:integration:amp": "cd test/apps/amp && pnpm check",
"check:integration:basics": "cd test/apps/basics && pnpm check",
"check:integration:options": "cd test/apps/options && pnpm check",
"check:integration:options-2": "cd test/apps/options-2 && pnpm check",
"check:integration:amp": "cd test/apps/amp && pnpm sync && pnpm check",
"check:integration:basics": "cd test/apps/basics && pnpm sync && pnpm check",
"check:integration:options": "cd test/apps/options && pnpm sync && pnpm check",
"check:integration:options-2": "cd test/apps/options-2 && pnpm sync && pnpm check",
"check:prerendering": "npm run check:prerendering:basics && npm run check:prerendering:options",
"check:prerendering:basics": "cd test/prerendering/basics && pnpm check",
"check:prerendering:options": "cd test/prerendering/options && pnpm check",
"check:prerendering:basics": "cd test/prerendering/basics && pnpm sync && pnpm check",
"check:prerendering:options": "cd test/prerendering/options && pnpm sync && pnpm check",
"format": "npm run check-format -- --write",
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore",
"prepublishOnly": "npm run build",
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/test/apps/amp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"cross-env": "^7.0.3",
"svelte": "^3.43.0",
"svelte-check": "^2.2.10",
"typescript": "~4.5.5"
"typescript": "~4.6.2"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/kit/test/apps/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"cross-env": "^7.0.3",
"svelte": "^3.43.0",
"svelte-check": "^2.2.10",
"typescript": "~4.5.5"
"typescript": "~4.6.2"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/kit/test/apps/options-2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"cross-env": "^7.0.3",
"svelte": "^3.43.0",
"svelte-check": "^2.2.10",
"typescript": "~4.5.5"
"typescript": "~4.6.2"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/kit/test/apps/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"cross-env": "^7.0.3",
"svelte": "^3.43.0",
"svelte-check": "^2.2.10",
"typescript": "~4.5.5"
"typescript": "~4.6.2"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/kit/test/prerendering/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@sveltejs/kit": "workspace:*",
"svelte": "^3.43.0",
"svelte-check": "^2.2.10",
"typescript": "~4.5.5",
"typescript": "~4.6.2",
"uvu": "^0.5.2"
},
"type": "module"
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/test/prerendering/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@sveltejs/kit": "workspace:*",
"svelte": "^3.43.0",
"svelte-check": "^2.2.10",
"typescript": "~4.5.5",
"typescript": "~4.6.2",
"uvu": "^0.5.2"
},
"type": "module"
Expand Down
Loading

0 comments on commit 198f800

Please sign in to comment.