fix: lint and fix cache service

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-04-06 22:18:48 +08:00
parent 128b92cbee
commit 96263782d0
68 changed files with 139 additions and 219 deletions

View File

@@ -1,5 +1,5 @@
import { readFileSync, writeFileSync } from 'fs'
import path from 'path'
import { readFileSync, writeFileSync } from 'node:fs'
import path from 'node:path'
const __dirname = new URL(import.meta.url).pathname.replace(/\/[^/]*$/, '')
const PKG = JSON.parse(readFileSync(path.resolve(__dirname, './package.json')))
@@ -11,7 +11,7 @@ const content = readFileSync(dts, 'utf-8')
// with declare module '@mx-space/api-client'
writeFileSync(
dts,
content.replace(
content.replaceAll(
/declare module '..\/core\/client'/g,
'declare module ' + `'${PKG.name}'`,
),