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
@@ -1,5 +1,7 @@
1
1
  # react-email
2
2
 
3
+ ## 4.3.2
4
+
3
5
  ## 4.3.1
4
6
 
5
7
  ### Patch Changes
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.1";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-email",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "A live preview of your emails right in your browser.",
5
5
  "bin": {
6
6
  "email": "./dist/index.js"
@@ -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.replace(extension, ''),
159
+ pathToDependencyFromDirectory,
155
160
  );
156
161
  })();
157
162