Complete Story 1-1 and fix TypeScript issues

Add TypeScript strict mode and typecheck tasks to monorepo infrastructure.
Fix E2E test @payload-config alias and frontend TypeScript errors.

- Add tsconfig.json to backend with strict mode and path aliases
- Add typecheck task to Turborepo and all packages
- Fix @payload-config alias for E2E tests and dev server
- Add setToken method to AuthService for middleware use
- Fix implicit any types in Footer.astro and Header.astro
- Remove invalid typescript config from astro.config.mjs
This commit is contained in:
2026-01-31 17:12:47 +08:00
parent d0e8c3bcff
commit 0846318d6e
15 changed files with 137 additions and 61 deletions

View File

@@ -9,18 +9,21 @@
"build": "astro build",
"preview": "astro preview",
"check": "astro check",
"deploy": "wrangler pages deploy dist"
"typecheck": "astro check",
"deploy": "wrangler deploy"
},
"dependencies": {
"@astrojs/cloudflare": "^12.6.9",
"@astrojs/cloudflare": "^12.6.12",
"@tailwindcss/vite": "^4.1.14",
"astro": "^5.14.1",
"astro": "6.0.0-beta.1",
"better-auth": "^1.3.13"
},
"devDependencies": {
"@astrojs/check": "^0.9.6",
"@tailwindcss/typography": "^0.5.19",
"autoprefixer": "^10.4.0",
"tailwindcss": "^4.1.14",
"typescript": "^5.4.0"
"typescript": "^5.7.3",
"wrangler": "^4.59.2"
}
}
}