fix(web): tsconfig

This commit is contained in:
Acbox
2026-02-14 19:56:44 +08:00
parent b771238576
commit f967c07e0a
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { parse } from 'toml'
import { readFileSync } from 'fs'
import type { Config } from './types'
import type { Config } from './types.ts'
export const loadConfig = (path: string = './config.toml'): Config => {
const config = parse(readFileSync(path, 'utf-8'))
@@ -25,4 +25,4 @@ export const getBaseUrl = (config: Config) => {
return `http://${rawAddr}`
}
export * from './types'
export * from './types.ts'
+2
View File
@@ -4,6 +4,8 @@
"module": "ESNext",
"lib": ["ES2022"],
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"noEmit": true,
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,