react-email 4.3.1 → 4.3.2
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
|
@@ -85,7 +85,7 @@ const getEmailsDirectoryMetadata = async (absolutePathToEmailsDirectory, keepFil
|
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region package.json
|
|
87
87
|
var name = "react-email";
|
|
88
|
-
var version = "4.3.
|
|
88
|
+
var version = "4.3.2";
|
|
89
89
|
var description = "A live preview of your emails right in your browser.";
|
|
90
90
|
var bin = { "email": "./dist/index.js" };
|
|
91
91
|
var type = "module";
|
|
@@ -475,7 +475,8 @@ const createDependencyGraph = async (directory) => {
|
|
|
475
475
|
const extension = path.extname(pathToDependencyFromDirectory);
|
|
476
476
|
const pathWithEnsuredExtension = (() => {
|
|
477
477
|
if (extension.length > 0 && existsSync(pathToDependencyFromDirectory)) return pathToDependencyFromDirectory;
|
|
478
|
-
return checkFileExtensionsUntilItExists(pathToDependencyFromDirectory.replace(extension, ""));
|
|
478
|
+
if (javascriptExtensions.includes(extension)) return checkFileExtensionsUntilItExists(pathToDependencyFromDirectory.replace(extension, ""));
|
|
479
|
+
return checkFileExtensionsUntilItExists(pathToDependencyFromDirectory);
|
|
479
480
|
})();
|
|
480
481
|
if (pathWithEnsuredExtension) pathToDependencyFromDirectory = pathWithEnsuredExtension;
|
|
481
482
|
else console.warn(`Could not find file at ${pathToDependencyFromDirectory}`);
|
package/package.json
CHANGED
|
@@ -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
|
|