Skip to content

Commit

Permalink
Fix build process on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdondorf committed May 8, 2024
1 parent f77ece7 commit 0274ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jsx-email/src/cli/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const build = async (path: string, argv: BuildOptions, outputBasePath?: s
const buildProps = JSON.parse(props);
const component = componentExport(buildProps);
const writePath = outputBasePath
? join(out!, path.replace(outputBasePath, '').replace(extname(path), extension))
? join(out!, resolve(path).replace(outputBasePath, '').replace(extname(path), extension))
: join(out!, basename(path).replace(extname(path), extension));

await mkdir(dirname(writePath), { recursive: true });
Expand Down

0 comments on commit 0274ece

Please sign in to comment.