diff --git a/src/valid-project.ts b/src/valid-project.ts index c4b2a24..0556ae9 100644 --- a/src/valid-project.ts +++ b/src/valid-project.ts @@ -1,4 +1,3 @@ -import { resolve } from 'path' import { readFileSync } from 'node:fs' import fail from './fail.js' import { TshyConfig } from './types.js' @@ -6,7 +5,7 @@ import { TshyConfig } from './types.js' export default (p: any): p is TshyConfig['project'] => { if (typeof p === 'string') { try { - readFileSync(resolve(p), 'utf8') + readFileSync(import.meta.resolve(p), 'utf8') return true } catch (_) {} }