Skip to content

Commit 66809fd

Browse files
build(deps): bump typescript from 5.9.3 to 6.0.2 (#236)
* build(deps): bump typescript from 5.9.3 to 6.0.2 Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.2. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.9.3...v6.0.2) --- updated-dependencies: - dependency-name: typescript dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * refactor: update import types and configure rootDir in tsconfig * deprecate v20 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JK Gunnink <jgunnink@gmail.com>
1 parent 97f398d commit 66809fd

6 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: [20.x, 22.x, 24.x]
14+
node-version: [22.x, 24.x]
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Use Node.js ${{ matrix.node-version }}

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"license": "MIT",
2020
"dependencies": {
2121
"@google-cloud/functions-framework": "^5.0.2",
22-
"typescript": "^5.9.3"
22+
"typescript": "^6.0.2"
2323
},
2424
"devDependencies": {
2525
"@types/chai": "^4.3.17",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Request, Response } from "express";
1+
import type { Request, Response } from "express";
22

33
export const helloWorld = (req: Request, res: Response) => {
44
const replyMessage = req.body.message || "Hello World!";

tests/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from "chai";
2-
import { helloWorld } from "../src/index";
3-
import { Request, Response } from "express";
2+
import { helloWorld } from "../src/index.ts";
3+
import type { Request, Response } from "express";
44

55
interface testObject {
66
args: Partial<Request>;

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4-
"outDir": "dist"
4+
"outDir": "dist",
5+
"rootDir": "src"
56
},
67
"include": ["src/**/*.ts"],
78
"exclude": ["./tests/", "./node_modules/", "./dist/"]

0 commit comments

Comments
 (0)