react-email 4.3.1 → 5.0.0-canary.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
CHANGED
package/dist/index.js
CHANGED
|
@@ -84,68 +84,56 @@ const getEmailsDirectoryMetadata = async (absolutePathToEmailsDirectory, keepFil
|
|
|
84
84
|
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region package.json
|
|
87
|
-
var name = "react-email";
|
|
88
|
-
var version = "4.3.1";
|
|
89
|
-
var description = "A live preview of your emails right in your browser.";
|
|
90
|
-
var bin = { "email": "./dist/index.js" };
|
|
91
|
-
var type = "module";
|
|
92
|
-
var scripts = {
|
|
93
|
-
"build": "tsdown",
|
|
94
|
-
"build:watch": "tsdown --watch src",
|
|
95
|
-
"clean": "rm -rf dist",
|
|
96
|
-
"test": "vitest run",
|
|
97
|
-
"test:watch": "vitest"
|
|
98
|
-
};
|
|
99
|
-
var license = "MIT";
|
|
100
|
-
var repository = {
|
|
101
|
-
"type": "git",
|
|
102
|
-
"url": "https://github.com/resend/react-email.git",
|
|
103
|
-
"directory": "packages/react-email"
|
|
104
|
-
};
|
|
105
|
-
var keywords = ["react", "email"];
|
|
106
|
-
var engines = { "node": ">=18.0.0" };
|
|
107
|
-
var dependencies = {
|
|
108
|
-
"@babel/parser": "^7.27.0",
|
|
109
|
-
"@babel/traverse": "^7.27.0",
|
|
110
|
-
"chokidar": "^4.0.3",
|
|
111
|
-
"commander": "^13.0.0",
|
|
112
|
-
"debounce": "^2.0.0",
|
|
113
|
-
"esbuild": "^0.25.0",
|
|
114
|
-
"glob": "^11.0.0",
|
|
115
|
-
"jiti": "2.4.2",
|
|
116
|
-
"log-symbols": "^7.0.0",
|
|
117
|
-
"mime-types": "^3.0.0",
|
|
118
|
-
"normalize-path": "^3.0.0",
|
|
119
|
-
"nypm": "0.6.0",
|
|
120
|
-
"ora": "^8.0.0",
|
|
121
|
-
"prompts": "2.4.2",
|
|
122
|
-
"socket.io": "^4.8.1",
|
|
123
|
-
"tsconfig-paths": "4.2.0"
|
|
124
|
-
};
|
|
125
|
-
var devDependencies = {
|
|
126
|
-
"@react-email/components": "workspace:*",
|
|
127
|
-
"@types/babel__core": "7.20.5",
|
|
128
|
-
"@types/babel__traverse": "7.20.7",
|
|
129
|
-
"@types/mime-types": "2.1.4",
|
|
130
|
-
"@types/prompts": "2.4.9",
|
|
131
|
-
"next": "^15.3.2",
|
|
132
|
-
"react": "19.0.0",
|
|
133
|
-
"react-dom": "19.0.0",
|
|
134
|
-
"typescript": "5.8.3"
|
|
135
|
-
};
|
|
136
87
|
var package_default = {
|
|
137
|
-
name,
|
|
138
|
-
version,
|
|
139
|
-
description,
|
|
140
|
-
bin,
|
|
141
|
-
type,
|
|
142
|
-
scripts
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
88
|
+
name: "react-email",
|
|
89
|
+
version: "5.0.0-canary.0",
|
|
90
|
+
description: "A live preview of your emails right in your browser.",
|
|
91
|
+
bin: { "email": "./dist/index.js" },
|
|
92
|
+
type: "module",
|
|
93
|
+
scripts: {
|
|
94
|
+
"build": "tsdown",
|
|
95
|
+
"build:watch": "tsdown --watch src",
|
|
96
|
+
"clean": "rm -rf dist",
|
|
97
|
+
"test": "vitest run",
|
|
98
|
+
"test:watch": "vitest"
|
|
99
|
+
},
|
|
100
|
+
license: "MIT",
|
|
101
|
+
repository: {
|
|
102
|
+
"type": "git",
|
|
103
|
+
"url": "https://github.com/resend/react-email.git",
|
|
104
|
+
"directory": "packages/react-email"
|
|
105
|
+
},
|
|
106
|
+
keywords: ["react", "email"],
|
|
107
|
+
engines: { "node": ">=18.0.0" },
|
|
108
|
+
dependencies: {
|
|
109
|
+
"@babel/parser": "^7.27.0",
|
|
110
|
+
"@babel/traverse": "^7.27.0",
|
|
111
|
+
"chokidar": "^4.0.3",
|
|
112
|
+
"commander": "^13.0.0",
|
|
113
|
+
"debounce": "^2.0.0",
|
|
114
|
+
"esbuild": "^0.25.0",
|
|
115
|
+
"glob": "^11.0.0",
|
|
116
|
+
"jiti": "2.4.2",
|
|
117
|
+
"log-symbols": "^7.0.0",
|
|
118
|
+
"mime-types": "^3.0.0",
|
|
119
|
+
"normalize-path": "^3.0.0",
|
|
120
|
+
"nypm": "0.6.0",
|
|
121
|
+
"ora": "^8.0.0",
|
|
122
|
+
"prompts": "2.4.2",
|
|
123
|
+
"socket.io": "^4.8.1",
|
|
124
|
+
"tsconfig-paths": "4.2.0"
|
|
125
|
+
},
|
|
126
|
+
devDependencies: {
|
|
127
|
+
"@react-email/components": "workspace:*",
|
|
128
|
+
"@types/babel__core": "7.20.5",
|
|
129
|
+
"@types/babel__traverse": "7.20.7",
|
|
130
|
+
"@types/mime-types": "2.1.4",
|
|
131
|
+
"@types/prompts": "2.4.9",
|
|
132
|
+
"next": "^15.3.2",
|
|
133
|
+
"react": "19.0.0",
|
|
134
|
+
"react-dom": "19.0.0",
|
|
135
|
+
"typescript": "5.8.3"
|
|
136
|
+
}
|
|
149
137
|
};
|
|
150
138
|
|
|
151
139
|
//#endregion
|
|
@@ -296,6 +284,7 @@ const updatePackageJson = async (builtPreviewAppPath) => {
|
|
|
296
284
|
packageJson.scripts.start = "next start";
|
|
297
285
|
delete packageJson.scripts.postbuild;
|
|
298
286
|
packageJson.name = "preview-server";
|
|
287
|
+
for (const [dependency, version$1] of Object.entries(packageJson.dependencies)) packageJson.dependencies[dependency] = version$1.replace("workspace:", "");
|
|
299
288
|
delete packageJson.devDependencies["@react-email/render"];
|
|
300
289
|
delete packageJson.devDependencies["@react-email/components"];
|
|
301
290
|
delete packageJson.scripts.prepare;
|
|
@@ -475,7 +464,8 @@ const createDependencyGraph = async (directory) => {
|
|
|
475
464
|
const extension = path.extname(pathToDependencyFromDirectory);
|
|
476
465
|
const pathWithEnsuredExtension = (() => {
|
|
477
466
|
if (extension.length > 0 && existsSync(pathToDependencyFromDirectory)) return pathToDependencyFromDirectory;
|
|
478
|
-
return checkFileExtensionsUntilItExists(pathToDependencyFromDirectory.replace(extension, ""));
|
|
467
|
+
if (javascriptExtensions.includes(extension)) return checkFileExtensionsUntilItExists(pathToDependencyFromDirectory.replace(extension, ""));
|
|
468
|
+
return checkFileExtensionsUntilItExists(pathToDependencyFromDirectory);
|
|
479
469
|
})();
|
|
480
470
|
if (pathWithEnsuredExtension) pathToDependencyFromDirectory = pathWithEnsuredExtension;
|
|
481
471
|
else console.warn(`Could not find file at ${pathToDependencyFromDirectory}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-email",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-canary.0",
|
|
4
4
|
"description": "A live preview of your emails right in your browser.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"email": "./dist/index.js"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react": "19.0.0",
|
|
47
47
|
"react-dom": "19.0.0",
|
|
48
48
|
"typescript": "5.8.3",
|
|
49
|
-
"@react-email/components": "0.
|
|
49
|
+
"@react-email/components": "1.0.0-canary.1"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsdown",
|
package/src/commands/build.ts
CHANGED
|
@@ -208,6 +208,12 @@ const updatePackageJson = async (builtPreviewAppPath: string) => {
|
|
|
208
208
|
|
|
209
209
|
packageJson.name = 'preview-server';
|
|
210
210
|
|
|
211
|
+
for (const [dependency, version] of Object.entries(
|
|
212
|
+
packageJson.dependencies,
|
|
213
|
+
)) {
|
|
214
|
+
packageJson.dependencies[dependency] = version.replace('workspace:', '');
|
|
215
|
+
}
|
|
216
|
+
|
|
211
217
|
// We remove this one to avoid having resolve issues on our demo build process.
|
|
212
218
|
// This is only used in the `export` command so it's irrelevant to have it here.
|
|
213
219
|
//
|
|
@@ -150,8 +150,13 @@ export const createDependencyGraph = async (directory: string) => {
|
|
|
150
150
|
) {
|
|
151
151
|
return pathToDependencyFromDirectory;
|
|
152
152
|
}
|
|
153
|
+
if (javascriptExtensions.includes(extension)) {
|
|
154
|
+
return checkFileExtensionsUntilItExists(
|
|
155
|
+
pathToDependencyFromDirectory.replace(extension, ''),
|
|
156
|
+
);
|
|
157
|
+
}
|
|
153
158
|
return checkFileExtensionsUntilItExists(
|
|
154
|
-
pathToDependencyFromDirectory
|
|
159
|
+
pathToDependencyFromDirectory,
|
|
155
160
|
);
|
|
156
161
|
})();
|
|
157
162
|
|