@depup/react-email 5.2.10-depup.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 +652 -0
- package/README.md +43 -0
- package/changes.json +58 -0
- package/dev/CHANGELOG.md +13 -0
- package/dev/index.js +46 -0
- package/dev/package.json +10 -0
- package/dist/index.mjs +7326 -0
- package/license.md +7 -0
- package/package.json +128 -0
- package/readme.md +59 -0
- package/src/commands/build.ts +269 -0
- package/src/commands/dev.ts +27 -0
- package/src/commands/export.ts +204 -0
- package/src/commands/resend/reset.ts +8 -0
- package/src/commands/resend/setup.ts +29 -0
- package/src/commands/start.ts +38 -0
- package/src/index.ts +110 -0
- package/src/utils/conf.ts +9 -0
- package/src/utils/esbuild/escape-string-for-regex.ts +3 -0
- package/src/utils/esbuild/renderring-utilities-exporter.ts +63 -0
- package/src/utils/get-emails-directory-metadata.spec.ts +82 -0
- package/src/utils/get-emails-directory-metadata.ts +140 -0
- package/src/utils/get-preview-server-location.ts +50 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/packageJson.ts +4 -0
- package/src/utils/preview/get-env-variables-for-preview-app.ts +20 -0
- package/src/utils/preview/hot-reloading/create-dependency-graph.spec.ts +226 -0
- package/src/utils/preview/hot-reloading/create-dependency-graph.ts +343 -0
- package/src/utils/preview/hot-reloading/get-imported-modules.spec.ts +151 -0
- package/src/utils/preview/hot-reloading/get-imported-modules.ts +49 -0
- package/src/utils/preview/hot-reloading/resolve-path-aliases.spec.ts +11 -0
- package/src/utils/preview/hot-reloading/resolve-path-aliases.ts +32 -0
- package/src/utils/preview/hot-reloading/setup-hot-reloading.ts +121 -0
- package/src/utils/preview/hot-reloading/test/dependency-graph/inner/data-to-import.json +1 -0
- package/src/utils/preview/hot-reloading/test/dependency-graph/inner/file-a.ts +5 -0
- package/src/utils/preview/hot-reloading/test/dependency-graph/inner/file-b.ts +5 -0
- package/src/utils/preview/hot-reloading/test/dependency-graph/inner/general-importing-file.ts +9 -0
- package/src/utils/preview/hot-reloading/test/dependency-graph/inner/outer-dependency.ts +3 -0
- package/src/utils/preview/hot-reloading/test/dependency-graph/inner/path-aliases.ts +1 -0
- package/src/utils/preview/hot-reloading/test/dependency-graph/outer.ts +5 -0
- package/src/utils/preview/hot-reloading/test/some-file.ts +0 -0
- package/src/utils/preview/hot-reloading/test/tsconfig.json +8 -0
- package/src/utils/preview/index.ts +2 -0
- package/src/utils/preview/serve-static-file.ts +51 -0
- package/src/utils/preview/start-dev-server.ts +252 -0
- package/src/utils/register-spinner-autostopping.ts +28 -0
- package/src/utils/style-text.ts +11 -0
- package/src/utils/tree.spec.ts +29 -0
- package/src/utils/tree.ts +76 -0
- package/src/utils/types/hot-reload-change.ts +6 -0
- package/src/utils/types/hot-reload-event.ts +3 -0
- package/tsconfig.json +39 -0
- package/tsdown.config.ts +8 -0
- package/vitest.config.ts +15 -0
package/changes.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bumped": {
|
|
3
|
+
"@babel/parser": {
|
|
4
|
+
"from": "7.27.0",
|
|
5
|
+
"to": "^7.29.2"
|
|
6
|
+
},
|
|
7
|
+
"@babel/traverse": {
|
|
8
|
+
"from": "7.27.0",
|
|
9
|
+
"to": "^7.29.0"
|
|
10
|
+
},
|
|
11
|
+
"chokidar": {
|
|
12
|
+
"from": "^4.0.3",
|
|
13
|
+
"to": "^5.0.0"
|
|
14
|
+
},
|
|
15
|
+
"commander": {
|
|
16
|
+
"from": "^13.0.0",
|
|
17
|
+
"to": "^14.0.3"
|
|
18
|
+
},
|
|
19
|
+
"conf": {
|
|
20
|
+
"from": "^15.0.2",
|
|
21
|
+
"to": "^15.1.0"
|
|
22
|
+
},
|
|
23
|
+
"debounce": {
|
|
24
|
+
"from": "^2.0.0",
|
|
25
|
+
"to": "^3.0.0"
|
|
26
|
+
},
|
|
27
|
+
"esbuild": {
|
|
28
|
+
"from": "0.27.3",
|
|
29
|
+
"to": "^0.27.4"
|
|
30
|
+
},
|
|
31
|
+
"jiti": {
|
|
32
|
+
"from": "2.4.2",
|
|
33
|
+
"to": "^2.6.1"
|
|
34
|
+
},
|
|
35
|
+
"log-symbols": {
|
|
36
|
+
"from": "^7.0.0",
|
|
37
|
+
"to": "^7.0.1"
|
|
38
|
+
},
|
|
39
|
+
"mime-types": {
|
|
40
|
+
"from": "^3.0.0",
|
|
41
|
+
"to": "^3.0.2"
|
|
42
|
+
},
|
|
43
|
+
"nypm": {
|
|
44
|
+
"from": "0.6.2",
|
|
45
|
+
"to": "^0.6.5"
|
|
46
|
+
},
|
|
47
|
+
"ora": {
|
|
48
|
+
"from": "^8.0.0",
|
|
49
|
+
"to": "^9.3.0"
|
|
50
|
+
},
|
|
51
|
+
"socket.io": {
|
|
52
|
+
"from": "^4.8.1",
|
|
53
|
+
"to": "^4.8.3"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"timestamp": "2026-03-18T23:28:13.438Z",
|
|
57
|
+
"totalUpdated": 13
|
|
58
|
+
}
|
package/dev/CHANGELOG.md
ADDED
package/dev/index.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import child_process from 'node:child_process';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import url from 'node:url';
|
|
4
|
+
import { join } from 'shlex';
|
|
5
|
+
|
|
6
|
+
const filename = url.fileURLToPath(import.meta.url);
|
|
7
|
+
const dirname = path.dirname(filename);
|
|
8
|
+
|
|
9
|
+
const root = path.resolve(dirname, '../src/index.ts');
|
|
10
|
+
|
|
11
|
+
const tsx = child_process.spawn(
|
|
12
|
+
`pnpm tsx ${root} ${join(process.argv.slice(2))}`,
|
|
13
|
+
{
|
|
14
|
+
cwd: process.cwd(),
|
|
15
|
+
shell: true,
|
|
16
|
+
stdio: 'inherit',
|
|
17
|
+
},
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
tsx.on('close', (code) => {
|
|
21
|
+
process.exit(code);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
process.on('uncaughtExceptionMonitor', () => {
|
|
25
|
+
tsx.kill();
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
process.on('exit', (code) => {
|
|
29
|
+
tsx.kill(code);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
process.on('SIGINT', () => {
|
|
33
|
+
tsx.kill('SIGINT');
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
process.on('SIGTERM', () => {
|
|
37
|
+
tsx.kill('SIGTERM');
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
process.on('SIGUSR1', () => {
|
|
41
|
+
tsx.kill('SIGUSR1');
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
process.on('SIGUSR2', () => {
|
|
45
|
+
tsx.kill('SIGUSR2');
|
|
46
|
+
});
|