Skip to content

Commit a1f73a1

Browse files
committed
chore: deps
1 parent 6a2e345 commit a1f73a1

File tree

20 files changed

+843
-1326
lines changed

20 files changed

+843
-1326
lines changed

.github/workflows/validate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jobs:
3434
- name: Build Projects
3535
run: |
3636
pnpm exec tsc --version
37-
cd packages/jsx-email && pnpm exec tsc --showConfig
37+
cat -n packages/jsx-email/node_modules/vite/dist/node/index.d.ts
38+
cat -n packages/jsx-email/node_modules/vite/package.json
3839
moon jsx-email:build
3940
moon create-jsx-email:build
4041
moon run :build --query "project~plugin-*"

apps/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "A project to demo and test the `email preview` CLI command",
66
"license": "MIT",
77
"peerDependencies": {
8-
"react": "^18.2.0 || ^19"
8+
"react": "^19.1.0"
99
},
1010
"dependencies": {
1111
"jsx-email": "workspace:*"

apps/preview/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
"postcss": "^8.4.32",
1919
"react": "^19",
2020
"react-dom": "^19",
21-
"react-router-dom": "7.0.1",
21+
"react-router-dom": "7.5.0",
2222
"shiki": "^1.18.0",
2323
"tailwindcss": "3.4.15",
2424
"titleize": "^4.0.0",
25-
"vite": "^5.2.11"
25+
"vite": "^6.2.6"
2626
}
2727
}

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@
4848
"packageManager": "[email protected]",
4949
"pnpm": {
5050
"overrides": {
51-
"@types/react": "19.0.2",
52-
"@types/react-dom": "19.0.2",
53-
"react": "19.0.0",
54-
"react-dom": "19.0.0",
55-
"react-router-dom": "6.16.0"
51+
"@types/react": "19.1.0",
52+
"@types/react-dom": "19.1.0",
53+
"react": "19.1.0",
54+
"react-dom": "19.1.0",
55+
"react-router-dom": "7.5.0",
56+
"vite": "6.2.6"
5657
}
5758
}
5859
}

packages/create-jsx-email/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const isEmpty = (path: string) => {
4848
const { log } = console;
4949
const normalizePath = (filename: string) => filename.split(win32.sep).join(posix.sep);
5050
const asConst = ' as const';
51-
const typeDep = ',\n"@types/react": "^19.0.2",\n"typescript": "^5.2.2"';
51+
const typeDep = ',\n"@types/react": "^19.1.0",\n"typescript": "^5.8.3"';
5252
const typeProps = `\ninterface TemplateProps {
5353
email: string;
5454
name: string;

packages/jsx-email/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"@jsx-email/plugin-inline": "workspace:^",
4848
"@jsx-email/plugin-minify": "workspace:^",
4949
"@jsx-email/plugin-pretty": "workspace:^",
50-
"react": "^18.2.0 || ^19",
51-
"react-dom": "^18.2.0 || ^19"
50+
"react": "^19.1.0",
51+
"react-dom": "^19.1.0"
5252
},
5353
"dependencies": {
5454
"@dot/log": "^0.2.0",
@@ -99,7 +99,7 @@
9999
"titleize": "^4.0.0",
100100
"unist-util-visit": "^5.0.0",
101101
"valibot": "^1.0.0",
102-
"vite": "^6.2.6",
102+
"vite": "6.2.6",
103103
"yargs-parser": "^21.1.1"
104104
},
105105
"devDependencies": {
@@ -112,10 +112,14 @@
112112
"@types/mime-types": "^2.1.4",
113113
"@types/mustache": "^4.2.5",
114114
"@types/pretty": "^2.0.1",
115+
"@types/react": "19.1.0",
116+
"@types/react-dom": "19.1.0",
115117
"@types/semver": "^7.5.8",
116118
"@types/source-map-support": "^0.5.10",
117119
"@types/yargs-parser": "^21.0.3",
118120
"hast": "^1.0.0",
121+
"react": "19.1.0",
122+
"react-dom": "19.1.0",
119123
"unified": "^11.0.4"
120124
},
121125
"types": "./dist/index.d.ts",

packages/jsx-email/src/cli/commands/build.mts renamed to packages/jsx-email/src/cli/commands/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import type { InferOutput as Infer } from 'valibot';
1212
import { parse as assert, boolean, object, optional, string } from 'valibot';
1313

1414
import { log } from '../../log.js';
15-
import { formatBytes, gmailByteLimit } from '../helpers.mjs';
15+
import { formatBytes, gmailByteLimit } from '../helpers.js';
1616
import { compile } from '../../renderer/compile.js';
1717
import { render } from '../../renderer/render.js';
1818

19-
import type { CommandFn, TemplateFn } from './types.mjs';
19+
import type { CommandFn, TemplateFn } from './types.js';
2020

2121
const BuildCommandOptionsStruct = object({
2222
exclude: optional(string()),

packages/jsx-email/src/cli/commands/check.mts renamed to packages/jsx-email/src/cli/commands/check.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import chalk from 'chalk';
55
import chalkTmpl from 'chalk-template';
66
import { parse as assert, object, type InferOutput as Infer } from 'valibot';
77

8-
import { formatBytes, gmailByteLimit, gmailBytesSafe } from '../helpers.mjs';
8+
import { formatBytes, gmailByteLimit, gmailBytesSafe } from '../helpers.js';
99

10-
import { buildTemplates } from './build.mjs';
11-
import { type CommandFn } from './types.mjs';
10+
import { buildTemplates } from './build.js';
11+
import { type CommandFn } from './types.js';
1212

1313
const { error, log } = console;
1414

packages/jsx-email/src/cli/commands/create.mts renamed to packages/jsx-email/src/cli/commands/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
type InferOutput as Infer
1414
} from 'valibot';
1515

16-
import { type CommandFn } from './types.mjs';
16+
import { type CommandFn } from './types.js';
1717

1818
// eslint-disable-next-line no-underscore-dangle
1919
const __filename = fileURLToPath(import.meta.url);

packages/jsx-email/src/cli/commands/help.mts renamed to packages/jsx-email/src/cli/commands/help.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import chalk from 'chalk-template';
22

33
import { name, version } from '../../package-info.cjs';
44

5-
import type { CommandFn } from './types.mjs';
6-
import { help as build } from './build.mjs';
7-
import { help as check } from './check.mjs';
8-
import { help as create } from './create.mjs';
9-
import { help as preview } from './preview.mjs';
5+
import type { CommandFn } from './types.js';
6+
import { help as build } from './build.js';
7+
import { help as check } from './check.js';
8+
import { help as create } from './create.js';
9+
import { help as preview } from './preview.js';
1010

1111
const { log } = console;
1212

packages/jsx-email/src/cli/commands/preview.mts renamed to packages/jsx-email/src/cli/commands/preview.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ import { parse as assert } from 'valibot';
1212
import { build as viteBuild, createServer, type InlineConfig } from 'vite';
1313

1414
import { log } from '../../log.js';
15-
import { buildForPreview, writePreviewDataFiles } from '../helpers.mjs';
16-
import { reloadPlugin } from '../vite-reload.mjs';
17-
import { staticPlugin } from '../vite-static.mjs';
18-
import { watch } from '../watcher.mjs';
15+
import { buildForPreview, writePreviewDataFiles } from '../helpers.js';
16+
import { reloadPlugin } from '../vite-reload.js';
17+
import { staticPlugin } from '../vite-static.js';
18+
import { watch } from '../watcher.js';
1919

20-
import { getTempPath } from './build.mjs';
20+
import { getTempPath } from './build.js';
2121
import {
2222
type CommandFn,
2323
type PreviewCommandOptions,
2424
type PreviewCommonParams,
2525
PreviewCommandOptionsStruct
26-
} from './types.mjs';
26+
} from './types.js';
2727

2828
// eslint-disable-next-line no-console
2929
const newline = () => console.log('');

packages/jsx-email/src/cli/helpers.mts renamed to packages/jsx-email/src/cli/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { readFile, writeFile } from 'node:fs/promises';
33
import chalk from 'chalk';
44
import prettyBytes from 'pretty-bytes';
55

6-
import { buildTemplates, normalizePath, type BuildTempatesResult } from './commands/build.mjs';
6+
import { buildTemplates, normalizePath, type BuildTempatesResult } from './commands/build.js';
77

88
export { originalCwd } from '../helpers.js';
99

packages/jsx-email/src/cli/main.mts renamed to packages/jsx-email/src/cli/main.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import { name, version } from '../package-info.cjs';
44

55
import { debug } from '../debug.js';
66

7-
import { command as build } from './commands/build.mjs';
8-
import { command as check } from './commands/check.mjs';
9-
import { command as create } from './commands/create.mjs';
10-
import { command as help } from './commands/help.mjs';
11-
import { command as preview } from './commands/preview.mjs';
12-
import type { CommandFn } from './commands/types.mjs';
7+
import { command as build } from './commands/build.js';
8+
import { command as check } from './commands/check.js';
9+
import { command as create } from './commands/create.js';
10+
import { command as help } from './commands/help.js';
11+
import { command as preview } from './commands/preview.js';
12+
import type { CommandFn } from './commands/types.js';
1313

1414
// Note: I'm not a huge fan of importing this here, but it guarantees that we capture
1515
// the cwd before anything else futzes with it

packages/jsx-email/src/cli/vite-reload.mts renamed to packages/jsx-email/src/cli/vite-reload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import micromatch from 'micromatch';
22
import type { PluginOption, ViteDevServer } from 'vite';
33

4-
import { normalizePath } from './commands/build.mjs';
4+
import { normalizePath } from './commands/build.js';
55

66
interface ViteReloadOptions {
77
globs: string[];

packages/jsx-email/src/cli/watcher.mts renamed to packages/jsx-email/src/cli/watcher.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import { type ViteDevServer } from 'vite';
1010

1111
import { log } from '../log.js';
1212

13-
import { getTempPath, type BuildTempatesResult } from './commands/build.mjs';
14-
import { type PreviewCommonParams } from './commands/types.mjs';
15-
import { buildForPreview, originalCwd, writePreviewDataFiles } from './helpers.mjs';
13+
import { getTempPath, type BuildTempatesResult } from './commands/build.js';
14+
import { type PreviewCommonParams } from './commands/types.js';
15+
import { buildForPreview, originalCwd, writePreviewDataFiles } from './helpers.js';
1616

1717
interface WatchArgs {
1818
common: PreviewCommonParams;

0 commit comments

Comments
 (0)