From c1669a0c5b081fa0507ec40f0aa8f1dfc47d79c6 Mon Sep 17 00:00:00 2001 From: Tycho Bokdam Date: Thu, 25 Apr 2024 21:45:59 +0200 Subject: [PATCH] fix(react-email): Fixed issues caused by `yarn dlx` --- packages/react-email/src/executors/export/export.impl.ts | 2 +- packages/react-email/src/executors/serve/serve.impl.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-email/src/executors/export/export.impl.ts b/packages/react-email/src/executors/export/export.impl.ts index 9ffa16dc..7afac8f8 100644 --- a/packages/react-email/src/executors/export/export.impl.ts +++ b/packages/react-email/src/executors/export/export.impl.ts @@ -20,7 +20,7 @@ export async function exportExecutor( } return execPackageManagerCommand(buildCommand([ - 'email export', + 'react-email export', `--dir=${sourceRoot || root}`, `--outDir=${options.outputPath}`, options.pretty && `--pretty`, diff --git a/packages/react-email/src/executors/serve/serve.impl.ts b/packages/react-email/src/executors/serve/serve.impl.ts index 5b5c7d88..a5254aea 100644 --- a/packages/react-email/src/executors/serve/serve.impl.ts +++ b/packages/react-email/src/executors/serve/serve.impl.ts @@ -14,7 +14,7 @@ export async function serveExecutor( const { sourceRoot, root } = context.workspace.projects[context.projectName] return execPackageManagerCommand(buildCommand([ - 'email dev', + 'react-email dev', `--dir=${sourceRoot || root}`, options.port && `--port=${options.port}` ]), {