Skip to content

Commit be4429f

Browse files
committed
Add type checking with tsgo
1 parent 009bbe8 commit be4429f

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

bun.lock

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

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"format": "prettier --write .",
1111
"lint:eslint": "eslint . --cache",
1212
"lint:prettier": "prettier --check .",
13-
"lint": "bun run lint:eslint && bun run lint:prettier"
13+
"check:types": "tsgo --noEmit",
14+
"lint": "bun run lint:eslint && bun run lint:prettier",
15+
"check": "bun run check:types",
16+
"check:all": "bun run check:types && bun run lint"
1417
},
1518
"dependencies": {
1619
"@astrojs/cloudflare": "^12.6.10",
@@ -30,6 +33,7 @@
3033
"@types/node": "^24.8.1",
3134
"@typescript-eslint/eslint-plugin": "^8.46.1",
3235
"@typescript-eslint/parser": "^8.46.1",
36+
"@typescript/native-preview": "^7.0.0-dev.20251017.1",
3337
"eslint": "^9.37.0",
3438
"eslint-config-prettier": "^10.1.8",
3539
"eslint-plugin-astro": "^1.3.1",

src/utils/download.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export async function getProjectDescriptorWithHangar(id: string): Promise<{ proj
9797

9898
return {
9999
project: {
100+
id,
100101
name: projectData.project.name,
101102
latestStableVersion,
102103
latestExperimentalVersion,

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"include": [".astro/types.d.ts", "**/*"],
44
"exclude": ["dist"],
55
"compilerOptions": {
6-
"baseUrl": ".",
76
"paths": {
87
"@/*": ["./src/*"]
98
}

0 commit comments

Comments
 (0)