From 8c64d26e234573c55dff6a47acb52d6cdd0074ce Mon Sep 17 00:00:00 2001 From: Princesseuh Date: Wed, 11 Oct 2023 17:26:57 +0200 Subject: [PATCH] fix: use basename --- packages/astro/src/cli/add/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/cli/add/index.ts b/packages/astro/src/cli/add/index.ts index a20a20e4b7d7..a6c4727ba92e 100644 --- a/packages/astro/src/cli/add/index.ts +++ b/packages/astro/src/cli/add/index.ts @@ -864,7 +864,7 @@ async function updateTSConfig( inputConfigText = JSON.stringify(inputConfig.rawConfig.tsconfig, null, 2); } - const configFileName = inputConfig.tsconfigFile.split('/').pop(); + const configFileName = path.basename(inputConfig.tsconfigFile); const outputConfig = updateTSConfigForFramework( inputConfig.rawConfig.tsconfig,