From 7694a1567861a5c694c6c849b504b3ab6cb196e2 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 2 Mar 2022 13:21:55 -0500 Subject: [PATCH] fix --- packages/kit/src/core/tsconfig.js | 2 +- packages/kit/test/apps/options/tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/kit/src/core/tsconfig.js b/packages/kit/src/core/tsconfig.js index a08392a23508..5ecd6ee9f265 100644 --- a/packages/kit/src/core/tsconfig.js +++ b/packages/kit/src/core/tsconfig.js @@ -19,7 +19,7 @@ export function generate_tsconfig(config) { const project_relative = (file) => posixify(path.relative('.', file)); /** @param {string} file */ - const config_relative = (file) => posixify(path.join(config.kit.outDir, file)); + const config_relative = (file) => posixify(path.relative(config.kit.outDir, file)); const dirs = new Set([ project_relative(path.dirname(config.kit.files.routes)), diff --git a/packages/kit/test/apps/options/tsconfig.json b/packages/kit/test/apps/options/tsconfig.json index f8208f24851b..ea08cd531d86 100644 --- a/packages/kit/test/apps/options/tsconfig.json +++ b/packages/kit/test/apps/options/tsconfig.json @@ -7,5 +7,5 @@ "types": ["../../../types/internal"] } }, - "extends": "./.svelte-kit/tsconfig.json" + "extends": "./.custom-out-dir/tsconfig.json" }