Skip to content

Commit

Permalink
fix(jsx-email): build process broken on Windows, fixes #194 (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdondorf authored May 9, 2024
1 parent f77ece7 commit 28c4e39
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 28c4e39

Please sign in to comment.