Skip to content

Commit

Permalink
fix: update template path in create-jsx-email script
Browse files Browse the repository at this point in the history
  • Loading branch information
lordelogos committed Nov 8, 2024
1 parent c6f4c2e commit 8adc890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-jsx-email/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const createEmail = async ({ jsx, name, outputPath }: CreateEmailArgs) =>
propsType: jsx ? '' : ': TemplateProps',
typeProps: jsx ? '' : typeProps
};
const templatePath = resolve(__dirname, '../generators/templates/email.mustache');
const templatePath = resolve(__dirname, '../dist/generators/templates/email.mustache');
const template = await readFile(templatePath, 'utf8');
const contents = mustache.render(template, data);
const fileName = basename(templatePath)
Expand Down

0 comments on commit 8adc890

Please sign in to comment.