Skip to content

Commit 0960525

Browse files
hautestgabrielmfern
authored andcommitted
fix(cli): Correct typo in cliPacakgeLocation to cliPackageLocation (#1918)
1 parent a17374a commit 0960525

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
getEmailsDirectoryMetadata,
99
} from '../../utils/get-emails-directory-metadata';
1010
import { registerSpinnerAutostopping } from '../../utils/register-spinner-autostopping';
11-
import { cliPacakgeLocation } from '../utils';
11+
import { cliPackageLocation } from '../utils';
1212

1313
interface Args {
1414
dir: string;
@@ -242,7 +242,7 @@ export const build = async ({
242242
}
243243

244244
spinner.text = 'Copying preview app from CLI to `.react-email`';
245-
await fs.promises.cp(cliPacakgeLocation, builtPreviewAppPath, {
245+
await fs.promises.cp(cliPackageLocation, builtPreviewAppPath, {
246246
recursive: true,
247247
filter: (source: string) => {
248248
// do not copy the CLI files

packages/react-email/src/cli/utils/preview/start-dev-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const safeAsyncServerListen = (server: http.Server, port: number) => {
2727
};
2828

2929
export const isDev = !__filename.endsWith(path.join('cli', 'index.js'));
30-
export const cliPacakgeLocation = isDev
30+
export const cliPackageLocation = isDev
3131
? path.resolve(__dirname, '../../../..')
3232
: path.resolve(__dirname, '../..');
3333
export const previewServerLocation = isDev

0 commit comments

Comments
 (0)