Comparing version 3.1.1 to 3.1.2
{ | ||
"name": "tsconfck", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "A utility to work with tsconfig.json without typescript", | ||
@@ -52,7 +52,9 @@ "license": "MIT", | ||
"@tsconfig/node18": "^18.2.4", | ||
"@vitest/coverage-v8": "^1.6.0", | ||
"esbuild": "^0.21.5", | ||
"@tsconfig/strictest": "^2.0.5", | ||
"@vitest/coverage-v8": "^2.0.5", | ||
"esbuild": "^0.23.1", | ||
"isaacscript-tsconfig": "^6.0.0", | ||
"tiny-glob": "^0.2.9", | ||
"typescript": "^5.4.5", | ||
"vitest": "^1.6.0" | ||
"typescript": "^5.5.4", | ||
"vitest": "^2.0.5" | ||
}, | ||
@@ -59,0 +61,0 @@ "engines": { |
@@ -370,3 +370,3 @@ import path from 'node:path'; | ||
function rebasePath(value, prependPath) { | ||
if (path.isAbsolute(value)) { | ||
if (path.isAbsolute(value) || value.startsWith('${configDir}')) { | ||
return value; | ||
@@ -373,0 +373,0 @@ } else { |
@@ -307,5 +307,5 @@ import path from 'node:path'; | ||
JSON.stringify(tsconfig) | ||
// replace ${configDir}, accounting for rebaseRelative emitted ../${configDir} | ||
.replaceAll(/"(?:\.\.\/)*\${configDir}/g, `"${native2posix(configDir)}`) | ||
// replace ${configDir} | ||
.replaceAll(/"\${configDir}/g, `"${native2posix(configDir)}`) | ||
); | ||
} |
@@ -111,3 +111,3 @@ declare module 'tsconfck' { | ||
*/ | ||
constructor(diagnostic: any, tsconfigFile: string, result: any | null); | ||
constructor(diagnostic: TSDiagnosticError, tsconfigFile: string, result: any | null); | ||
/** | ||
@@ -120,3 +120,3 @@ * code of typescript diagnostic, prefixed with "TS " | ||
* */ | ||
diagnostic: any; | ||
diagnostic: TSDiagnosticError; | ||
/** | ||
@@ -131,2 +131,11 @@ * native result if present, contains all errors in result.errors | ||
} | ||
/** | ||
* { | ||
* code: number; | ||
* category: number; | ||
* messageText: string; | ||
* start?: number; | ||
* } TSDiagnosticError | ||
*/ | ||
type TSDiagnosticError = any; | ||
interface TSConfckFindOptions { | ||
@@ -252,4 +261,6 @@ /** | ||
} | ||
export {}; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68469
1885
8