chore: setup TypeScript 6 and pnpm with mise

- Add mise.toml with pnpm latest
- Create root workspace with pnpm-workspace.yaml
- Upgrade TypeScript from 5.9.3 to 6.0.3 in apps/web
- Add vite-env.d.ts for CSS module type declarations
- Switch from npm to pnpm package management
This commit is contained in:
2026-04-29 17:53:32 -04:00
parent 3d8ca8b54d
commit e45eeeb600
6 changed files with 2303 additions and 1 deletions

View File

@@ -10,14 +10,16 @@
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"katex": "^0.16.45",
"lucide-preact": "^1.14.0", "lucide-preact": "^1.14.0",
"mermaid": "^11.14.0",
"preact": "^10.27.2", "preact": "^10.27.2",
"preact-iso": "^2.9.3" "preact-iso": "^2.9.3"
}, },
"devDependencies": { "devDependencies": {
"@preact/preset-vite": "^2.10.2", "@preact/preset-vite": "^2.10.2",
"prettier": "^3.6.2", "prettier": "^3.6.2",
"typescript": "^5.9.3", "typescript": "^6.0.3",
"vite": "^7.1.12" "vite": "^7.1.12"
} }
} }

6
apps/web/src/vite-env.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
/// <reference types="vite/client" />
declare module "*.css" {
const content: string;
export default content;
}

2
mise.toml Normal file
View File

@@ -0,0 +1,2 @@
[tools]
pnpm = "latest"

11
package.json Normal file
View File

@@ -0,0 +1,11 @@
{
"name": "md-hub-secure",
"version": "1.0.0",
"private": true,
"packageManager": "pnpm@10.10.0",
"scripts": {
"dev": "pnpm --filter web dev",
"build": "pnpm --filter web build",
"typecheck": "pnpm --filter web typecheck"
}
}

2279
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

2
pnpm-workspace.yaml Normal file
View File

@@ -0,0 +1,2 @@
packages:
- 'apps/*'