react-email 5.2.0-canary.2 → 5.2.0
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 +12 -0
- package/dev/CHANGELOG.md +2 -0
- package/dev/index.js +12 -9
- package/dev/package.json +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -2
- package/src/commands/build.ts +1 -3
- package/src/utils/get-emails-directory-metadata.spec.ts +7 -7
- package/src/utils/preview/hot-reloading/create-dependency-graph.spec.ts +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# react-email
|
|
2
2
|
|
|
3
|
+
## 5.2.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 16cc7d1: increase timeout to 10 minutes by default, disable build workers
|
|
8
|
+
|
|
9
|
+
## 5.2.0-canary.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 16cc7d1: increase timeout to 10 minutes by default, disable build workers
|
|
14
|
+
|
|
3
15
|
## 5.2.0-canary.2
|
|
4
16
|
|
|
5
17
|
## 5.2.0-canary.1
|
package/dev/CHANGELOG.md
CHANGED
package/dev/index.js
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import child_process from 'node:child_process';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import url from 'node:url';
|
|
4
|
+
import { join } from 'shlex';
|
|
4
5
|
|
|
5
6
|
const filename = url.fileURLToPath(import.meta.url);
|
|
6
7
|
const dirname = path.dirname(filename);
|
|
7
8
|
|
|
8
9
|
const root = path.resolve(dirname, '../src/index.ts');
|
|
9
10
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
const tsx = child_process.spawn(
|
|
12
|
+
`pnpm tsx ${root} ${join(process.argv.slice(2))}`,
|
|
13
|
+
{
|
|
14
|
+
cwd: process.cwd(),
|
|
15
|
+
shell: true,
|
|
16
|
+
env: {
|
|
17
|
+
...process.env,
|
|
18
|
+
NODE_OPTIONS: `${process.env.NODE_OPTIONS ?? ''} --experimental-vm-modules --disable-warning=ExperimentalWarning`,
|
|
19
|
+
},
|
|
20
|
+
stdio: 'inherit',
|
|
17
21
|
},
|
|
18
|
-
|
|
19
|
-
});
|
|
22
|
+
);
|
|
20
23
|
|
|
21
24
|
tsx.on('close', (code) => {
|
|
22
25
|
process.exit(code);
|
package/dev/package.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -87,7 +87,7 @@ const getEmailsDirectoryMetadata = async (absolutePathToEmailsDirectory, keepFil
|
|
|
87
87
|
//#region package.json
|
|
88
88
|
var package_default = {
|
|
89
89
|
name: "react-email",
|
|
90
|
-
version: "5.2.0
|
|
90
|
+
version: "5.2.0",
|
|
91
91
|
description: "A live preview of your emails right in your browser.",
|
|
92
92
|
bin: { "email": "./dist/index.js" },
|
|
93
93
|
type: "module",
|
|
@@ -134,6 +134,8 @@ var package_default = {
|
|
|
134
134
|
"next": "16.0.10",
|
|
135
135
|
"react": "19.0.0",
|
|
136
136
|
"react-dom": "19.0.0",
|
|
137
|
+
"shlex": "3.0.0",
|
|
138
|
+
"tsx": "4.21.0",
|
|
137
139
|
"typescript": "5.8.3"
|
|
138
140
|
}
|
|
139
141
|
};
|
|
@@ -204,9 +206,7 @@ const nextConfig = {
|
|
|
204
206
|
typescript: {
|
|
205
207
|
ignoreBuildErrors: true
|
|
206
208
|
},
|
|
207
|
-
|
|
208
|
-
webpackBuildWorker: true
|
|
209
|
-
},
|
|
209
|
+
staticPageGenerationTimeout: 600,
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
export default nextConfig`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-email",
|
|
3
|
-
"version": "5.2.0
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "A live preview of your emails right in your browser.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"email": "./dist/index.js"
|
|
@@ -46,8 +46,10 @@
|
|
|
46
46
|
"next": "16.0.10",
|
|
47
47
|
"react": "19.0.0",
|
|
48
48
|
"react-dom": "19.0.0",
|
|
49
|
+
"shlex": "3.0.0",
|
|
50
|
+
"tsx": "4.21.0",
|
|
49
51
|
"typescript": "5.8.3",
|
|
50
|
-
"@react-email/components": "1.0.4
|
|
52
|
+
"@react-email/components": "1.0.4"
|
|
51
53
|
},
|
|
52
54
|
"scripts": {
|
|
53
55
|
"build": "tsdown",
|
package/src/commands/build.ts
CHANGED
|
@@ -13,7 +13,7 @@ test('getEmailsDirectoryMetadata on demo emails', async () => {
|
|
|
13
13
|
emailFilenames: [],
|
|
14
14
|
subDirectories: [
|
|
15
15
|
{
|
|
16
|
-
absolutePath:
|
|
16
|
+
absolutePath: path.join(emailsDirectoryPath, 'magic-links'),
|
|
17
17
|
directoryName: 'magic-links',
|
|
18
18
|
relativePath: 'magic-links',
|
|
19
19
|
emailFilenames: [
|
|
@@ -27,7 +27,7 @@ test('getEmailsDirectoryMetadata on demo emails', async () => {
|
|
|
27
27
|
subDirectories: [],
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
absolutePath:
|
|
30
|
+
absolutePath: path.join(emailsDirectoryPath, 'newsletters'),
|
|
31
31
|
directoryName: 'newsletters',
|
|
32
32
|
relativePath: 'newsletters',
|
|
33
33
|
emailFilenames: [
|
|
@@ -38,7 +38,7 @@ test('getEmailsDirectoryMetadata on demo emails', async () => {
|
|
|
38
38
|
subDirectories: [],
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
absolutePath:
|
|
41
|
+
absolutePath: path.join(emailsDirectoryPath, 'notifications'),
|
|
42
42
|
directoryName: 'notifications',
|
|
43
43
|
relativePath: 'notifications',
|
|
44
44
|
emailFilenames: [
|
|
@@ -50,28 +50,28 @@ test('getEmailsDirectoryMetadata on demo emails', async () => {
|
|
|
50
50
|
subDirectories: [],
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
absolutePath:
|
|
53
|
+
absolutePath: path.join(emailsDirectoryPath, 'receipts'),
|
|
54
54
|
directoryName: 'receipts',
|
|
55
55
|
relativePath: 'receipts',
|
|
56
56
|
emailFilenames: ['apple-receipt', 'nike-receipt'],
|
|
57
57
|
subDirectories: [],
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
absolutePath:
|
|
60
|
+
absolutePath: path.join(emailsDirectoryPath, 'reset-password'),
|
|
61
61
|
directoryName: 'reset-password',
|
|
62
62
|
relativePath: 'reset-password',
|
|
63
63
|
emailFilenames: ['dropbox-reset-password', 'twitch-reset-password'],
|
|
64
64
|
subDirectories: [],
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
absolutePath:
|
|
67
|
+
absolutePath: path.join(emailsDirectoryPath, 'reviews'),
|
|
68
68
|
directoryName: 'reviews',
|
|
69
69
|
relativePath: 'reviews',
|
|
70
70
|
emailFilenames: ['airbnb-review', 'amazon-review'],
|
|
71
71
|
subDirectories: [],
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
absolutePath:
|
|
74
|
+
absolutePath: path.join(emailsDirectoryPath, 'welcome'),
|
|
75
75
|
directoryName: 'welcome',
|
|
76
76
|
relativePath: 'welcome',
|
|
77
77
|
emailFilenames: ['koala-welcome', 'netlify-welcome', 'stripe-welcome'],
|
|
@@ -40,14 +40,16 @@ describe('createDependencyGraph()', async () => {
|
|
|
40
40
|
const relativePathDependencyGraph = Object.fromEntries(
|
|
41
41
|
Object.entries(dependencyGraph).map(([key, value]) => {
|
|
42
42
|
return [
|
|
43
|
-
path.relative(testingDiretctory, key),
|
|
43
|
+
path.relative(testingDiretctory, key).replace(/\\/g, '/'),
|
|
44
44
|
{
|
|
45
|
-
path: path
|
|
45
|
+
path: path
|
|
46
|
+
.relative(testingDiretctory, value.path)
|
|
47
|
+
.replace(/\\/g, '/'),
|
|
46
48
|
dependentPaths: value.dependentPaths.map((p) =>
|
|
47
|
-
path.relative(testingDiretctory, p),
|
|
49
|
+
path.relative(testingDiretctory, p).replace(/\\/g, '/'),
|
|
48
50
|
),
|
|
49
51
|
dependencyPaths: value.dependencyPaths.map((p) =>
|
|
50
|
-
path.relative(testingDiretctory, p),
|
|
52
|
+
path.relative(testingDiretctory, p).replace(/\\/g, '/'),
|
|
51
53
|
),
|
|
52
54
|
moduleDependencies: value.moduleDependencies,
|
|
53
55
|
},
|