@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.
Files changed (54) hide show
  1. package/CHANGELOG.md +652 -0
  2. package/README.md +43 -0
  3. package/changes.json +58 -0
  4. package/dev/CHANGELOG.md +13 -0
  5. package/dev/index.js +46 -0
  6. package/dev/package.json +10 -0
  7. package/dist/index.mjs +7326 -0
  8. package/license.md +7 -0
  9. package/package.json +128 -0
  10. package/readme.md +59 -0
  11. package/src/commands/build.ts +269 -0
  12. package/src/commands/dev.ts +27 -0
  13. package/src/commands/export.ts +204 -0
  14. package/src/commands/resend/reset.ts +8 -0
  15. package/src/commands/resend/setup.ts +29 -0
  16. package/src/commands/start.ts +38 -0
  17. package/src/index.ts +110 -0
  18. package/src/utils/conf.ts +9 -0
  19. package/src/utils/esbuild/escape-string-for-regex.ts +3 -0
  20. package/src/utils/esbuild/renderring-utilities-exporter.ts +63 -0
  21. package/src/utils/get-emails-directory-metadata.spec.ts +82 -0
  22. package/src/utils/get-emails-directory-metadata.ts +140 -0
  23. package/src/utils/get-preview-server-location.ts +50 -0
  24. package/src/utils/index.ts +2 -0
  25. package/src/utils/packageJson.ts +4 -0
  26. package/src/utils/preview/get-env-variables-for-preview-app.ts +20 -0
  27. package/src/utils/preview/hot-reloading/create-dependency-graph.spec.ts +226 -0
  28. package/src/utils/preview/hot-reloading/create-dependency-graph.ts +343 -0
  29. package/src/utils/preview/hot-reloading/get-imported-modules.spec.ts +151 -0
  30. package/src/utils/preview/hot-reloading/get-imported-modules.ts +49 -0
  31. package/src/utils/preview/hot-reloading/resolve-path-aliases.spec.ts +11 -0
  32. package/src/utils/preview/hot-reloading/resolve-path-aliases.ts +32 -0
  33. package/src/utils/preview/hot-reloading/setup-hot-reloading.ts +121 -0
  34. package/src/utils/preview/hot-reloading/test/dependency-graph/inner/data-to-import.json +1 -0
  35. package/src/utils/preview/hot-reloading/test/dependency-graph/inner/file-a.ts +5 -0
  36. package/src/utils/preview/hot-reloading/test/dependency-graph/inner/file-b.ts +5 -0
  37. package/src/utils/preview/hot-reloading/test/dependency-graph/inner/general-importing-file.ts +9 -0
  38. package/src/utils/preview/hot-reloading/test/dependency-graph/inner/outer-dependency.ts +3 -0
  39. package/src/utils/preview/hot-reloading/test/dependency-graph/inner/path-aliases.ts +1 -0
  40. package/src/utils/preview/hot-reloading/test/dependency-graph/outer.ts +5 -0
  41. package/src/utils/preview/hot-reloading/test/some-file.ts +0 -0
  42. package/src/utils/preview/hot-reloading/test/tsconfig.json +8 -0
  43. package/src/utils/preview/index.ts +2 -0
  44. package/src/utils/preview/serve-static-file.ts +51 -0
  45. package/src/utils/preview/start-dev-server.ts +252 -0
  46. package/src/utils/register-spinner-autostopping.ts +28 -0
  47. package/src/utils/style-text.ts +11 -0
  48. package/src/utils/tree.spec.ts +29 -0
  49. package/src/utils/tree.ts +76 -0
  50. package/src/utils/types/hot-reload-change.ts +6 -0
  51. package/src/utils/types/hot-reload-event.ts +3 -0
  52. package/tsconfig.json +39 -0
  53. package/tsdown.config.ts +8 -0
  54. 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
+ }
@@ -0,0 +1,13 @@
1
+ # email-dev
2
+
3
+ ## 0.0.6
4
+
5
+ ## 0.0.5
6
+
7
+ ## 0.0.4
8
+
9
+ ## 0.0.3
10
+
11
+ ## 0.0.2
12
+
13
+ ## 0.0.1
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
+ });
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "email-dev",
3
+ "version": "0.0.6",
4
+ "bin": "index.js",
5
+ "private": true,
6
+ "type": "module",
7
+ "scripts": {
8
+ "start": "node ."
9
+ }
10
+ }