tsconfck
Advanced tools
Comparing version 3.0.0-next.4 to 3.0.0-next.5
{ | ||
"name": "tsconfck", | ||
"version": "3.0.0-next.4", | ||
"version": "3.0.0-next.5", | ||
"description": "A utility to work with tsconfig.json without typescript", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -46,4 +46,4 @@ import path from 'node:path'; | ||
const cached = cache.getTSConfigPath(dir); | ||
if (cached.then) { | ||
cached.then(done).catch((err) => done(null, err)); | ||
if (cached?.then) { | ||
/** @type Promise<string|null> */ cached.then(done).catch((err) => done(null, err)); | ||
} else { | ||
@@ -50,0 +50,0 @@ done(/**@type {string|null} */ (cached)); |
60285