react-email 4.2.8 → 4.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/index.js +5 -4
- package/package.json +2 -3
- package/src/utils/preview/start-dev-server.ts +4 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -106,7 +106,7 @@ import prompts from "prompts";
|
|
|
106
106
|
// package.json
|
|
107
107
|
var package_default = {
|
|
108
108
|
name: "react-email",
|
|
109
|
-
version: "4.2.
|
|
109
|
+
version: "4.2.10",
|
|
110
110
|
description: "A live preview of your emails right in your browser.",
|
|
111
111
|
bin: {
|
|
112
112
|
email: "./dist/index.js"
|
|
@@ -135,7 +135,6 @@ var package_default = {
|
|
|
135
135
|
dependencies: {
|
|
136
136
|
"@babel/parser": "^7.27.0",
|
|
137
137
|
"@babel/traverse": "^7.27.0",
|
|
138
|
-
chalk: "^5.0.0",
|
|
139
138
|
chokidar: "^4.0.3",
|
|
140
139
|
commander: "^13.0.0",
|
|
141
140
|
debounce: "^2.0.0",
|
|
@@ -871,7 +870,7 @@ var setupHotreloading = async (devServer2, emailDirRelativePath) => {
|
|
|
871
870
|
import http from "node:http";
|
|
872
871
|
import path9 from "node:path";
|
|
873
872
|
import url2 from "node:url";
|
|
874
|
-
import
|
|
873
|
+
import { styleText } from "node:util";
|
|
875
874
|
import { createJiti as createJiti2 } from "jiti";
|
|
876
875
|
import logSymbols3 from "log-symbols";
|
|
877
876
|
import ora2 from "ora";
|
|
@@ -980,7 +979,9 @@ var startDevServer = async (emailsDirRelativePath, staticBaseDirRelativePath, po
|
|
|
980
979
|
});
|
|
981
980
|
const { portAlreadyInUse } = await safeAsyncServerListen(devServer, port);
|
|
982
981
|
if (!portAlreadyInUse) {
|
|
983
|
-
console.log(
|
|
982
|
+
console.log(
|
|
983
|
+
styleText("greenBright", ` React Email ${package_default.version}`)
|
|
984
|
+
);
|
|
984
985
|
console.log(` Running preview at: http://localhost:${port}
|
|
985
986
|
`);
|
|
986
987
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-email",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.10",
|
|
4
4
|
"description": "A live preview of your emails right in your browser.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"email": "./dist/index.js"
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@babel/parser": "^7.27.0",
|
|
24
24
|
"@babel/traverse": "^7.27.0",
|
|
25
|
-
"chalk": "^5.0.0",
|
|
26
25
|
"chokidar": "^4.0.3",
|
|
27
26
|
"commander": "^13.0.0",
|
|
28
27
|
"debounce": "^2.0.0",
|
|
@@ -48,7 +47,7 @@
|
|
|
48
47
|
"react-dom": "19.0.0",
|
|
49
48
|
"tsup": "8.4.0",
|
|
50
49
|
"typescript": "5.8.3",
|
|
51
|
-
"@react-email/components": "0.
|
|
50
|
+
"@react-email/components": "0.5.3"
|
|
52
51
|
},
|
|
53
52
|
"scripts": {
|
|
54
53
|
"build": "tsup-node",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import http from 'node:http';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import url from 'node:url';
|
|
4
|
-
import
|
|
4
|
+
import { styleText } from 'node:util';
|
|
5
5
|
import { createJiti } from 'jiti';
|
|
6
6
|
import logSymbols from 'log-symbols';
|
|
7
7
|
import ora from 'ora';
|
|
@@ -85,7 +85,9 @@ export const startDevServer = async (
|
|
|
85
85
|
if (!portAlreadyInUse) {
|
|
86
86
|
// this errors when linting but doesn't on the editor so ignore the warning on this
|
|
87
87
|
/* eslint-disable-next-line @typescript-eslint/no-unsafe-member-access */
|
|
88
|
-
console.log(
|
|
88
|
+
console.log(
|
|
89
|
+
styleText('greenBright', ` React Email ${packageJson.version}`),
|
|
90
|
+
);
|
|
89
91
|
console.log(` Running preview at: http://localhost:${port}\n`);
|
|
90
92
|
} else {
|
|
91
93
|
const nextPortToTry = port + 1;
|