Skip to content

Commit

Permalink
fix: resolve astroFileFullPath to extract relative astroFilePath on W…
Browse files Browse the repository at this point in the history
…indows

fixes #135
  • Loading branch information
yassinedoghri committed Mar 9, 2023
1 parent e4deac9 commit c23cd27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cli/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export const generate = (

const filesToGenerate: FileToGenerate[] = [];
astroPagesFullPaths.forEach(async function (astroFileFullPath: string) {
const astroFilePath = astroFileFullPath.replace(resolve(inputPath), "");
const astroFilePath = resolve(astroFileFullPath).replace(
resolve(inputPath),
""
);

const inputFilePath = showDefaultLocale
? [inputPath, defaultLocale, astroFilePath].join("/")
Expand Down

0 comments on commit c23cd27

Please sign in to comment.