File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to the "react-email-preview" extension will be documented in
4
4
5
5
## [ Unreleased]
6
6
7
+ ## 0.0.1 - 2023-11-04
8
+
9
+ ### Fixes
10
+
11
+ - Fixed build files not being deleted for files that are not email templates
12
+
7
13
## 0.0.0 - 2023-11-04
8
14
9
15
Released first version for testing.
Original file line number Diff line number Diff line change 2
2
"name" : " react-email-preview" ,
3
3
"displayName" : " react-email preview" ,
4
4
"description" : " A easy way to view the preview of a email made with react-email from your editor" ,
5
- "version" : " 0.0.0 " ,
5
+ "version" : " 0.0.1 " ,
6
6
"license" : " MIT" ,
7
7
"publishConfig" : {
8
8
"access" : " public"
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ export async function renderOpenEmailFile(
58
58
const email = require ( builtFileWithCurrentContents ) ;
59
59
60
60
if ( typeof email . default === "undefined" ) {
61
+ await unlink ( builtFileWithCurrentContents ) ;
62
+
61
63
// this means there is no "export default ..." in the file
62
64
return { valid : false } ;
63
65
}
You can’t perform that action at this time.
0 commit comments