Skip to content

Commit 403e415

Browse files
authored
fix(react-email): deno not working as an option for email build (#2070)
1 parent 4820285 commit 403e415

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/hungry-books-thank.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-email": patch
3+
---
4+
5+
Fix `deno` not working as an option for `email build`

packages/react-email/src/cli/commands/build.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,11 @@ const npmInstall = async (
194194
return new Promise<void>((resolve, reject) => {
195195
const childProc = spawn(
196196
packageManager,
197-
['install', '--silent', '--include=dev'],
197+
[
198+
'install',
199+
packageManager === 'deno' ? '' : '--include=dev',
200+
packageManager === 'deno' ? '--quiet' : '--silent',
201+
],
198202
{
199203
cwd: builtPreviewAppPath,
200204
shell: true,

0 commit comments

Comments
 (0)