@react-email/preview-server 5.2.0 → 5.2.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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/fallback-build-manifest.json +2 -2
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +2 -2
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page/server-reference-manifest.json +1 -1
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/preview/[...slug]/page/server-reference-manifest.json +8 -8
- package/.next/server/app/preview/[...slug]/page.js.nft.json +1 -1
- package/.next/server/app/preview/[...slug]/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__190806cb._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__65b224ca._.js +3 -3
- package/.next/server/chunks/ssr/{[root-of-the-server]__fe561ade._.js → [root-of-the-server]__ab7af329._.js} +3 -3
- package/.next/server/chunks/ssr/{[root-of-the-server]__fe561ade._.js.map → [root-of-the-server]__ab7af329._.js.map} +1 -1
- package/.next/server/chunks/ssr/_3f38bf05._.js +1 -1
- package/.next/server/chunks/ssr/_3f38bf05._.js.map +1 -1
- package/.next/server/chunks/ssr/_4de4b087._.js +1 -1
- package/.next/server/chunks/ssr/_4de4b087._.js.map +1 -1
- package/.next/server/chunks/ssr/_d712e4e0._.js +1 -1
- package/.next/server/chunks/ssr/_d712e4e0._.js.map +1 -1
- package/.next/server/chunks/ssr/packages_preview-server_src_f0998b31._.js +1 -1
- package/.next/server/chunks/ssr/packages_preview-server_src_f0998b31._.js.map +1 -1
- package/.next/server/pages/500.html +2 -2
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +9 -9
- package/.next/static/chunks/{9e0d8157eedf4dfd.css → 0c866897f719c7d5.css} +1 -1
- package/.next/static/chunks/{84978f8debc4b6f5.js → 362f35c7cb48b7d8.js} +1 -1
- package/.next/static/chunks/dde3dcb608bb7775.js +1 -0
- package/.next/trace +1 -1
- package/.next/trace-build +1 -1
- package/CHANGELOG.md +7 -0
- package/package.json +5 -5
- package/src/app/globals.css +2 -2
- package/src/utils/contains-email-template.spec.ts +236 -105
- package/src/utils/contains-email-template.ts +7 -4
- package/src/utils/get-emails-directory-metadata.spec.ts +7 -7
- package/.next/static/chunks/4b64dfed5a64e4aa.js +0 -1
- /package/.next/static/{3eWOFUbz56fk_vcM0itUp → uJMpTPZtEUBEsh3_HD54n}/_buildManifest.js +0 -0
- /package/.next/static/{3eWOFUbz56fk_vcM0itUp → uJMpTPZtEUBEsh3_HD54n}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{3eWOFUbz56fk_vcM0itUp → uJMpTPZtEUBEsh3_HD54n}/_ssgManifest.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-email/preview-server",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "A live preview of your emails right in your browser.",
|
|
5
5
|
"main": "./index.mjs",
|
|
6
6
|
"dependencies": {
|
|
@@ -59,18 +59,18 @@
|
|
|
59
59
|
"typescript": "5.8.3",
|
|
60
60
|
"use-debounce": "10.0.4",
|
|
61
61
|
"zod": "4.1.12",
|
|
62
|
+
"@react-email/code-block": "0.2.1",
|
|
62
63
|
"@react-email/body": "0.2.1",
|
|
63
64
|
"@react-email/button": "0.2.1",
|
|
64
|
-
"@react-email/code-block": "0.2.1",
|
|
65
65
|
"@react-email/code-inline": "0.0.6",
|
|
66
66
|
"@react-email/components": "1.0.4",
|
|
67
67
|
"@react-email/container": "0.0.16",
|
|
68
|
-
"@react-email/heading": "0.0.16",
|
|
69
68
|
"@react-email/hr": "0.0.12",
|
|
70
|
-
"@react-email/img": "0.0.12",
|
|
71
69
|
"@react-email/link": "0.0.13",
|
|
72
70
|
"@react-email/preview": "0.0.14",
|
|
73
|
-
"@react-email/
|
|
71
|
+
"@react-email/heading": "0.0.16",
|
|
72
|
+
"@react-email/text": "0.1.6",
|
|
73
|
+
"@react-email/img": "0.0.12"
|
|
74
74
|
},
|
|
75
75
|
"license": "MIT",
|
|
76
76
|
"repository": {
|
package/src/app/globals.css
CHANGED
|
@@ -23,114 +23,245 @@ describe('removeFilenameExtension()', () => {
|
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
describe('containsEmailTemplate()', () => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
26
|
+
describe('with Windows path separator', () => {
|
|
27
|
+
const directory: EmailsDirectory = {
|
|
28
|
+
absolutePath: 'C:\\fake\\path\\emails',
|
|
29
|
+
directoryName: 'emails',
|
|
30
|
+
relativePath: '',
|
|
31
|
+
emailFilenames: [],
|
|
32
|
+
subDirectories: [
|
|
33
|
+
{
|
|
34
|
+
absolutePath: 'C:\\fake\\path\\emails\\magic-links',
|
|
35
|
+
directoryName: 'magic-links',
|
|
36
|
+
relativePath: 'magic-links',
|
|
37
|
+
emailFilenames: [
|
|
38
|
+
'aws-verify-email',
|
|
39
|
+
'linear-login-code',
|
|
40
|
+
'notion-magic-link',
|
|
41
|
+
'plaid-verify-identity',
|
|
42
|
+
'raycast-magic-link',
|
|
43
|
+
'slack-confirm',
|
|
44
|
+
],
|
|
45
|
+
subDirectories: [
|
|
46
|
+
{
|
|
47
|
+
absolutePath: 'C:\\fake\\path\\emails\\magic-links\\resend',
|
|
48
|
+
directoryName: 'resend',
|
|
49
|
+
emailFilenames: ['verify-email'],
|
|
50
|
+
relativePath: 'magic-links\\resend',
|
|
51
|
+
subDirectories: [],
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
absolutePath: 'C:\\fake\\path\\emails\\first\\second',
|
|
57
|
+
directoryName: 'first\\second',
|
|
58
|
+
relativePath: 'first\\second',
|
|
59
|
+
emailFilenames: ['email'],
|
|
60
|
+
subDirectories: [],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
absolutePath: 'C:\\fake\\path\\emails\\newsletters',
|
|
64
|
+
directoryName: 'newsletters',
|
|
65
|
+
relativePath: 'newsletters',
|
|
66
|
+
emailFilenames: [
|
|
67
|
+
'codepen-challengers',
|
|
68
|
+
'google-play-policy-update',
|
|
69
|
+
'stack-overflow-tips',
|
|
70
|
+
],
|
|
71
|
+
subDirectories: [],
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
absolutePath: 'C:\\fake\\path\\emails\\notifications',
|
|
75
|
+
directoryName: 'notifications',
|
|
76
|
+
relativePath: 'notifications',
|
|
77
|
+
emailFilenames: [
|
|
78
|
+
'github-access-token',
|
|
79
|
+
'papermark-year-in-review',
|
|
80
|
+
'vercel-invite-user',
|
|
81
|
+
'yelp-recent-login',
|
|
82
|
+
],
|
|
83
|
+
subDirectories: [],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
absolutePath: 'C:\\fake\\path\\emails\\receipts',
|
|
87
|
+
directoryName: 'receipts',
|
|
88
|
+
relativePath: 'receipts',
|
|
89
|
+
emailFilenames: ['apple-receipt', 'nike-receipt'],
|
|
90
|
+
subDirectories: [],
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
absolutePath: 'C:\\fake\\path\\emails\\reset-password',
|
|
94
|
+
directoryName: 'reset-password',
|
|
95
|
+
relativePath: 'reset-password',
|
|
96
|
+
emailFilenames: ['dropbox-reset-password', 'twitch-reset-password'],
|
|
97
|
+
subDirectories: [],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
absolutePath: 'C:\\fake\\path\\emails\\reviews',
|
|
101
|
+
directoryName: 'reviews',
|
|
102
|
+
relativePath: 'reviews',
|
|
103
|
+
emailFilenames: ['airbnb-review', 'amazon-review'],
|
|
104
|
+
subDirectories: [],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
absolutePath: 'C:\\fake\\path\\emails\\welcome',
|
|
108
|
+
directoryName: 'welcome',
|
|
109
|
+
relativePath: 'welcome',
|
|
110
|
+
emailFilenames: [
|
|
111
|
+
'koala-welcome',
|
|
112
|
+
'netlify-welcome',
|
|
113
|
+
'stripe-welcome',
|
|
114
|
+
],
|
|
115
|
+
subDirectories: [],
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
};
|
|
114
119
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
120
|
+
it('works with collapsed email directory', () => {
|
|
121
|
+
expect(containsEmailTemplate('first\\second\\email.tsx', directory)).toBe(
|
|
122
|
+
true,
|
|
123
|
+
);
|
|
124
|
+
});
|
|
118
125
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
it('works with email inside a single sub directory', () => {
|
|
127
|
+
expect(
|
|
128
|
+
containsEmailTemplate('welcome\\koala-welcome.tsx', directory),
|
|
129
|
+
).toBe(true);
|
|
130
|
+
expect(
|
|
131
|
+
containsEmailTemplate('welcome\\missing-template.tsx', directory),
|
|
132
|
+
).toBe(false);
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
it('works with email inside a second sub directory', () => {
|
|
136
|
+
expect(
|
|
137
|
+
containsEmailTemplate(
|
|
138
|
+
'magic-links\\resend\\verify-email.tsx',
|
|
139
|
+
directory,
|
|
140
|
+
),
|
|
141
|
+
).toBe(true);
|
|
142
|
+
expect(
|
|
143
|
+
containsEmailTemplate(
|
|
144
|
+
'magic-links\\resend\\missing-template',
|
|
145
|
+
directory,
|
|
146
|
+
),
|
|
147
|
+
).toBe(false);
|
|
148
|
+
});
|
|
126
149
|
});
|
|
127
150
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
151
|
+
describe('with unix path separator', () => {
|
|
152
|
+
const directory: EmailsDirectory = {
|
|
153
|
+
absolutePath: '/fake/path/emails',
|
|
154
|
+
directoryName: 'emails',
|
|
155
|
+
relativePath: '',
|
|
156
|
+
emailFilenames: [],
|
|
157
|
+
subDirectories: [
|
|
158
|
+
{
|
|
159
|
+
absolutePath: '/fake/path/emails/magic-links',
|
|
160
|
+
directoryName: 'magic-links',
|
|
161
|
+
relativePath: 'magic-links',
|
|
162
|
+
emailFilenames: [
|
|
163
|
+
'aws-verify-email',
|
|
164
|
+
'linear-login-code',
|
|
165
|
+
'notion-magic-link',
|
|
166
|
+
'plaid-verify-identity',
|
|
167
|
+
'raycast-magic-link',
|
|
168
|
+
'slack-confirm',
|
|
169
|
+
],
|
|
170
|
+
subDirectories: [
|
|
171
|
+
{
|
|
172
|
+
absolutePath: '/fake/path/emails/magic-links/resend',
|
|
173
|
+
directoryName: 'resend',
|
|
174
|
+
emailFilenames: ['verify-email'],
|
|
175
|
+
relativePath: 'magic-links/resend',
|
|
176
|
+
subDirectories: [],
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
absolutePath: '/fake/path/emails/first/second',
|
|
182
|
+
directoryName: 'first/second',
|
|
183
|
+
relativePath: 'first/second',
|
|
184
|
+
emailFilenames: ['email'],
|
|
185
|
+
subDirectories: [],
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
absolutePath: '/fake/path/emails/newsletters',
|
|
189
|
+
directoryName: 'newsletters',
|
|
190
|
+
relativePath: 'newsletters',
|
|
191
|
+
emailFilenames: [
|
|
192
|
+
'codepen-challengers',
|
|
193
|
+
'google-play-policy-update',
|
|
194
|
+
'stack-overflow-tips',
|
|
195
|
+
],
|
|
196
|
+
subDirectories: [],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
absolutePath: '/fake/path/emails/notifications',
|
|
200
|
+
directoryName: 'notifications',
|
|
201
|
+
relativePath: 'notifications',
|
|
202
|
+
emailFilenames: [
|
|
203
|
+
'github-access-token',
|
|
204
|
+
'papermark-year-in-review',
|
|
205
|
+
'vercel-invite-user',
|
|
206
|
+
'yelp-recent-login',
|
|
207
|
+
],
|
|
208
|
+
subDirectories: [],
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
absolutePath: '/fake/path/emails/receipts',
|
|
212
|
+
directoryName: 'receipts',
|
|
213
|
+
relativePath: 'receipts',
|
|
214
|
+
emailFilenames: ['apple-receipt', 'nike-receipt'],
|
|
215
|
+
subDirectories: [],
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
absolutePath: '/fake/path/emails/reset-password',
|
|
219
|
+
directoryName: 'reset-password',
|
|
220
|
+
relativePath: 'reset-password',
|
|
221
|
+
emailFilenames: ['dropbox-reset-password', 'twitch-reset-password'],
|
|
222
|
+
subDirectories: [],
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
absolutePath: '/fake/path/emails/reviews',
|
|
226
|
+
directoryName: 'reviews',
|
|
227
|
+
relativePath: 'reviews',
|
|
228
|
+
emailFilenames: ['airbnb-review', 'amazon-review'],
|
|
229
|
+
subDirectories: [],
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
absolutePath: '/fake/path/emails/welcome',
|
|
233
|
+
directoryName: 'welcome',
|
|
234
|
+
relativePath: 'welcome',
|
|
235
|
+
emailFilenames: [
|
|
236
|
+
'koala-welcome',
|
|
237
|
+
'netlify-welcome',
|
|
238
|
+
'stripe-welcome',
|
|
239
|
+
],
|
|
240
|
+
subDirectories: [],
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
it('works with collapsed email directory', () => {
|
|
246
|
+
expect(containsEmailTemplate('first/second/email', directory)).toBe(true);
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
it('works with email inside a single sub directory', () => {
|
|
250
|
+
expect(containsEmailTemplate('welcome/koala-welcome', directory)).toBe(
|
|
251
|
+
true,
|
|
252
|
+
);
|
|
253
|
+
expect(containsEmailTemplate('welcome/missing-template', directory)).toBe(
|
|
254
|
+
false,
|
|
255
|
+
);
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
it('works with email inside a second sub directory', () => {
|
|
259
|
+
expect(
|
|
260
|
+
containsEmailTemplate('magic-links/resend/verify-email', directory),
|
|
261
|
+
).toBe(true);
|
|
262
|
+
expect(
|
|
263
|
+
containsEmailTemplate('magic-links/resend/missing-template', directory),
|
|
264
|
+
).toBe(false);
|
|
265
|
+
});
|
|
135
266
|
});
|
|
136
267
|
});
|
|
@@ -14,34 +14,37 @@ export const containsEmailTemplate = (
|
|
|
14
14
|
relativeEmailPath: string,
|
|
15
15
|
directory: EmailsDirectory,
|
|
16
16
|
) => {
|
|
17
|
+
const pathSeparator = relativeEmailPath.includes('\\') ? '\\' : '/';
|
|
17
18
|
const emailPathSegments = relativeEmailPath
|
|
18
19
|
.replace(directory.relativePath, '')
|
|
19
|
-
.split(
|
|
20
|
+
.split(pathSeparator)
|
|
20
21
|
.filter(Boolean);
|
|
21
22
|
|
|
22
|
-
return containsEmailPathSegments(emailPathSegments, directory);
|
|
23
|
+
return containsEmailPathSegments(emailPathSegments, directory, pathSeparator);
|
|
23
24
|
};
|
|
24
25
|
|
|
25
26
|
const containsEmailPathSegments = (
|
|
26
27
|
relativeEmailSegments: string[],
|
|
27
28
|
directory: EmailsDirectory,
|
|
29
|
+
pathSeparator: string,
|
|
28
30
|
) => {
|
|
29
31
|
if (relativeEmailSegments.length === 1) {
|
|
30
32
|
const emailFilename = removeFilenameExtension(relativeEmailSegments[0]!);
|
|
31
33
|
return directory.emailFilenames.includes(emailFilename);
|
|
32
34
|
}
|
|
33
35
|
|
|
34
|
-
const remainingPath = relativeEmailSegments.join(
|
|
36
|
+
const remainingPath = relativeEmailSegments.join(pathSeparator);
|
|
35
37
|
|
|
36
38
|
for (const subDirectory of directory.subDirectories) {
|
|
37
39
|
if (remainingPath.startsWith(subDirectory.directoryName)) {
|
|
38
40
|
const matchedSegments = subDirectory.directoryName
|
|
39
|
-
.split(
|
|
41
|
+
.split(pathSeparator)
|
|
40
42
|
.filter(Boolean).length;
|
|
41
43
|
|
|
42
44
|
return containsEmailPathSegments(
|
|
43
45
|
relativeEmailSegments.slice(matchedSegments),
|
|
44
46
|
subDirectory,
|
|
47
|
+
pathSeparator,
|
|
45
48
|
);
|
|
46
49
|
}
|
|
47
50
|
}
|
|
@@ -13,7 +13,7 @@ test('getEmailsDirectoryMetadata on demo emails', async () => {
|
|
|
13
13
|
emailFilenames: [],
|
|
14
14
|
subDirectories: [
|
|
15
15
|
{
|
|
16
|
-
absolutePath:
|
|
16
|
+
absolutePath: path.join(emailsDirectoryPath, 'magic-links'),
|
|
17
17
|
directoryName: 'magic-links',
|
|
18
18
|
relativePath: 'magic-links',
|
|
19
19
|
emailFilenames: [
|
|
@@ -27,7 +27,7 @@ test('getEmailsDirectoryMetadata on demo emails', async () => {
|
|
|
27
27
|
subDirectories: [],
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
absolutePath:
|
|
30
|
+
absolutePath: path.join(emailsDirectoryPath, 'newsletters'),
|
|
31
31
|
directoryName: 'newsletters',
|
|
32
32
|
relativePath: 'newsletters',
|
|
33
33
|
emailFilenames: [
|
|
@@ -38,7 +38,7 @@ test('getEmailsDirectoryMetadata on demo emails', async () => {
|
|
|
38
38
|
subDirectories: [],
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
absolutePath:
|
|
41
|
+
absolutePath: path.join(emailsDirectoryPath, 'notifications'),
|
|
42
42
|
directoryName: 'notifications',
|
|
43
43
|
relativePath: 'notifications',
|
|
44
44
|
emailFilenames: [
|
|
@@ -50,28 +50,28 @@ test('getEmailsDirectoryMetadata on demo emails', async () => {
|
|
|
50
50
|
subDirectories: [],
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
absolutePath:
|
|
53
|
+
absolutePath: path.join(emailsDirectoryPath, 'receipts'),
|
|
54
54
|
directoryName: 'receipts',
|
|
55
55
|
relativePath: 'receipts',
|
|
56
56
|
emailFilenames: ['apple-receipt', 'nike-receipt'],
|
|
57
57
|
subDirectories: [],
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
absolutePath:
|
|
60
|
+
absolutePath: path.join(emailsDirectoryPath, 'reset-password'),
|
|
61
61
|
directoryName: 'reset-password',
|
|
62
62
|
relativePath: 'reset-password',
|
|
63
63
|
emailFilenames: ['dropbox-reset-password', 'twitch-reset-password'],
|
|
64
64
|
subDirectories: [],
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
absolutePath:
|
|
67
|
+
absolutePath: path.join(emailsDirectoryPath, 'reviews'),
|
|
68
68
|
directoryName: 'reviews',
|
|
69
69
|
relativePath: 'reviews',
|
|
70
70
|
emailFilenames: ['airbnb-review', 'amazon-review'],
|
|
71
71
|
subDirectories: [],
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
absolutePath:
|
|
74
|
+
absolutePath: path.join(emailsDirectoryPath, 'welcome'),
|
|
75
75
|
directoryName: 'welcome',
|
|
76
76
|
relativePath: 'welcome',
|
|
77
77
|
emailFilenames: ['koala-welcome', 'netlify-welcome', 'stripe-welcome'],
|