Skip to content

Commit 2836661

Browse files
authored
Upgrade typescript version to v6 in templates (#10232)
* Upgrade typescript version to v6 in templates Keeping typescript code here up-to-date. * Upgrade typescript version to v6 in templates Keeping typescript version up-to-date. Includes defining the rootDir to src in tsconfig.json. * Update changelog. * formatting
1 parent b0a6b03 commit 2836661

9 files changed

Lines changed: 9 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
- Add validation to check if backendId exists in `firebase.json` when `--only` flag is used. (#10161)
22
- Updated default Postgres version for Data Connect to 18. (#10234)
3+
- Update Typescript version to v6 in templates for functions and extensions. (#10232)

templates/extensions/typescript/package.lint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"eslint": "^8.15.1",
2222
"eslint-plugin-import": "^2.26.0",
2323
"eslint-config-google": "^0.14.0",
24-
"typescript": "^5.3.0",
24+
"typescript": "^6.0.0",
2525
"axios": "^1.3.2",
2626
"chai": "^4.3.7",
2727
"mocha": "^10.2.0",

templates/extensions/typescript/package.nolint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"devDependencies": {
1515
"@types/chai": "^4.3.4",
1616
"@types/mocha": "^10.0.1",
17-
"typescript": "^5.3.0",
17+
"typescript": "^6.0.0",
1818
"axios": "^1.3.2",
1919
"chai": "^4.3.7",
2020
"mocha": "^10.2.0",

templates/extensions/typescript/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"noImplicitReturns": true,
55
"noUnusedLocals": true,
66
"outDir": "lib",
7+
"rootDir": "src",
78
"sourceMap": true,
89
"strict": true,
910
"target": "es2017",

templates/init/functions/typescript/package-ongraphrequest.lint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"eslint-config-google": "^0.14.0",
2828
"eslint-plugin-import": "^2.25.4",
2929
"firebase-functions-test": "^3.4.1",
30-
"typescript": "^5.7.3"
30+
"typescript": "^6.0.0"
3131
},
3232
"private": true
3333
}

templates/init/functions/typescript/package-ongraphrequest.nolint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@as-integrations/express4": "^1.1.2"
2121
},
2222
"devDependencies": {
23-
"typescript": "^5.7.3",
23+
"typescript": "^6.0.0",
2424
"firebase-functions-test": "^3.4.1"
2525
},
2626
"private": true

templates/init/functions/typescript/package.lint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"eslint-config-google": "^0.14.0",
2626
"eslint-plugin-import": "^2.25.4",
2727
"firebase-functions-test": "^3.4.1",
28-
"typescript": "^5.7.3"
28+
"typescript": "^6.0.0"
2929
},
3030
"private": true
3131
}

templates/init/functions/typescript/package.nolint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"firebase-functions": "^7.0.0"
1919
},
2020
"devDependencies": {
21-
"typescript": "^5.7.3",
21+
"typescript": "^6.0.0",
2222
"firebase-functions-test": "^3.4.1"
2323
},
2424
"private": true

templates/init/functions/typescript/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"noImplicitReturns": true,
77
"noUnusedLocals": true,
88
"outDir": "lib",
9+
"rootDir": "src",
910
"sourceMap": true,
1011
"strict": true,
1112
"target": "es2017"

0 commit comments

Comments
 (0)