react-email 5.1.1 → 5.2.0-canary.1
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
CHANGED
package/dev/index.js
CHANGED
|
@@ -11,6 +11,10 @@ const tsxPath = path.resolve(dirname, '../../../node_modules/.bin/tsx');
|
|
|
11
11
|
|
|
12
12
|
const tsx = child_process.spawn(tsxPath, [root, ...process.argv.slice(2)], {
|
|
13
13
|
cwd: process.cwd(),
|
|
14
|
+
env: {
|
|
15
|
+
...process.env,
|
|
16
|
+
NODE_OPTIONS: `${process.env.NODE_OPTIONS ?? ''} --experimental-vm-modules --disable-warning=ExperimentalWarning`,
|
|
17
|
+
},
|
|
14
18
|
stdio: 'inherit',
|
|
15
19
|
});
|
|
16
20
|
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env -S node --experimental-vm-modules --disable-warning=ExperimentalWarning
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { program } from "commander";
|
|
4
4
|
import fs, { existsSync, promises, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -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.
|
|
90
|
+
version: "5.2.0-canary.1",
|
|
91
91
|
description: "A live preview of your emails right in your browser.",
|
|
92
92
|
bin: { "email": "./dist/index.js" },
|
|
93
93
|
type: "module",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-email",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0-canary.1",
|
|
4
4
|
"description": "A live preview of your emails right in your browser.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"email": "./dist/index.js"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"react": "19.0.0",
|
|
48
48
|
"react-dom": "19.0.0",
|
|
49
49
|
"typescript": "5.8.3",
|
|
50
|
-
"@react-email/components": "1.0.
|
|
50
|
+
"@react-email/components": "1.0.4-canary.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "tsdown",
|
package/src/index.ts
CHANGED
|
@@ -29,39 +29,33 @@ describe('createDependencyGraph()', async () => {
|
|
|
29
29
|
return path.resolve(testingDiretctory, relativePath);
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
it.sequential(
|
|
33
|
-
'
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
]);
|
|
39
|
-
},
|
|
40
|
-
);
|
|
32
|
+
it.sequential('should resolve dependents when there are circular dependencies', async () => {
|
|
33
|
+
expect(resolveDependentsOf(toAbsolute('file-a.ts'))).toEqual([
|
|
34
|
+
toAbsolute('file-b.ts'),
|
|
35
|
+
toAbsolute('general-importing-file.ts'),
|
|
36
|
+
]);
|
|
37
|
+
});
|
|
41
38
|
|
|
42
|
-
it.sequential(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
path.relative(testingDiretctory,
|
|
49
|
-
|
|
50
|
-
path
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
expect(relativePathDependencyGraph).toMatchSnapshot();
|
|
63
|
-
},
|
|
64
|
-
);
|
|
39
|
+
it.sequential('should have the right initial value for the dependency graph', () => {
|
|
40
|
+
const relativePathDependencyGraph = Object.fromEntries(
|
|
41
|
+
Object.entries(dependencyGraph).map(([key, value]) => {
|
|
42
|
+
return [
|
|
43
|
+
path.relative(testingDiretctory, key),
|
|
44
|
+
{
|
|
45
|
+
path: path.relative(testingDiretctory, value.path),
|
|
46
|
+
dependentPaths: value.dependentPaths.map((p) =>
|
|
47
|
+
path.relative(testingDiretctory, p),
|
|
48
|
+
),
|
|
49
|
+
dependencyPaths: value.dependencyPaths.map((p) =>
|
|
50
|
+
path.relative(testingDiretctory, p),
|
|
51
|
+
),
|
|
52
|
+
moduleDependencies: value.moduleDependencies,
|
|
53
|
+
},
|
|
54
|
+
];
|
|
55
|
+
}),
|
|
56
|
+
);
|
|
57
|
+
expect(relativePathDependencyGraph).toMatchSnapshot();
|
|
58
|
+
});
|
|
65
59
|
|
|
66
60
|
it.sequential('should work when adding a new file', async () => {
|
|
67
61
|
await fs.writeFile(
|
|
@@ -144,9 +144,9 @@ export const startDevServer = async (
|
|
|
144
144
|
);
|
|
145
145
|
|
|
146
146
|
const app = next({
|
|
147
|
-
// passing in env here does not get the environment variables there
|
|
148
147
|
dev: false,
|
|
149
148
|
conf: {
|
|
149
|
+
// passing in env here does not get the environment variables there
|
|
150
150
|
images: {
|
|
151
151
|
// This is to avoid the warning with sharp
|
|
152
152
|
unoptimized: true,
|