Skip to content

Commit b6660a0

Browse files
fix(cli): plugin init template ts 6/7 rootDir (#15954)
Update typescript to v7 in `tauri plugin init` template (split from #15703). Also fixes the default `rootDir` in the template `tsconfig.json` Closes #15953 (regession from #15158)
1 parent 71783b8 commit b6660a0

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎.changes/plugin-template-ts7.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": patch:deps
3+
"@tauri-apps/cli": patch:deps
4+
---
5+
6+
Update typescript to v7 in `tauri plugin init` template. Also fixes the default `rootDir` in the template `tsconfig.json`

‎crates/tauri-cli/templates/plugin/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"devDependencies": {
2828
"@rollup/plugin-typescript": "^12.0.0",
2929
"rollup": "^4.9.6",
30-
"typescript": "^6.0.0",
30+
"typescript": "^7.0.2",
3131
"tslib": "^2.6.2"
3232
}
3333
}

‎crates/tauri-cli/templates/plugin/tsconfig.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"rootDir": "guest-js",
34
"target": "es2021",
45
"module": "esnext",
56
"moduleResolution": "bundler",

0 commit comments

Comments
 (0)