Skip to content

Commit 2660dbd

Browse files
committed
tweak
1 parent 450ce7e commit 2660dbd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/svelte-check/src/incremental.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,11 @@ function rebasePathsConfig(
904904
for (const [key, specs] of Object.entries(options.paths)) {
905905
const result: string[] = [];
906906
for (const spec of specs) {
907-
const rebasedSpec = rebaseConfigSpec(spec, pathsBaseDir, overlayDir);
907+
// ${configDir} placeholder should already be resolved here
908+
const absoluteSpec = path.isAbsolute(spec)
909+
? spec
910+
: path.resolve(pathsBaseDir, spec);
911+
const rebasedSpec = toRelativePosix(overlayDir, absoluteSpec);
908912
result.push(rebasedSpec);
909913
let posixSpec = toPosixPath(spec);
910914
if (path.isAbsolute(posixSpec)) {

0 commit comments

Comments
 (0)