Skip to content

Commit

Permalink
fix: use basename
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Oct 11, 2023
1 parent 9a2a202 commit 8c64d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/cli/add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8c64d26

Please sign in to comment.