mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
fix(web): tsconfig
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
"module": "ESNext",
|
||||
"lib": ["ES2022"],
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"noEmit": true,
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
|
||||
Reference in New Issue
Block a user