Skip to content

Commit 4136405

Browse files
committed
chore: tsc
1 parent b81119c commit 4136405

File tree

8 files changed

+5
-44
lines changed

8 files changed

+5
-44
lines changed

.github/workflows/validate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333

3434
- name: Build Projects
3535
run: |
36+
cd packages/jsx-email && pnpm exec tsc --showConfig
3637
moon jsx-email:build
3738
moon create-jsx-email:build
3839
moon run :build --query "project~plugin-*"

packages/jsx-email/package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,5 @@
124124
"url": "https://github.com/sponsors/shellscape"
125125
},
126126
"generatorsBump": "0",
127-
"sideEffects": false,
128-
"tshy": {
129-
"exports": {
130-
"./package.json": "./package.json",
131-
".": "./src/index.ts",
132-
"./compile": "./src/compile.ts",
133-
"./config": "./src/config.ts"
134-
}
135-
}
127+
"sideEffects": false
136128
}

packages/jsx-email/src/cli/vite-reload.mts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import micromatch from 'micromatch';
2-
// Note: another tshy problem https://github.com/isaacs/tshy/issues/96
3-
// @ts-ignore
42
import type { PluginOption, ViteDevServer } from 'vite';
53

64
import { normalizePath } from './commands/build.mjs';
@@ -15,8 +13,6 @@ export const reloadPlugin = (options: ViteReloadOptions): PluginOption => {
1513

1614
return {
1715
apply: 'serve',
18-
// Note: and yet another tshy problem
19-
// @ts-ignore
2016
config({ server }) {
2117
/* eslint-disable no-param-reassign */
2218
if (!server) server = {};
@@ -34,8 +30,6 @@ export const reloadPlugin = (options: ViteReloadOptions): PluginOption => {
3430
}
3531
});
3632
},
37-
// Note: another tshy problem https://github.com/isaacs/tshy/issues/96
38-
// @ts-ignore
3933
name: 'jsx-email-reload'
4034
};
4135
};

packages/jsx-email/src/cli/vite-static.mts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { extname } from 'node:path';
33

44
import { globby } from 'globby';
55
import mime from 'mime-types';
6-
// Note: another tshy problem https://github.com/isaacs/tshy/issues/96
7-
// @ts-ignore
86
import type { PluginOption, ViteDevServer } from 'vite';
97

108
interface ViteStaticOptions {
@@ -55,8 +53,6 @@ const middleware = async (params: MiddlwareParams) => {
5553
const files = await globby(paths);
5654

5755
return () => {
58-
// Note: another tshy problem https://github.com/isaacs/tshy/issues/96
59-
// @ts-ignore
6056
server.middlewares.use(async (req, res, next) => {
6157
const base = req.originalUrl ?? '';
6258
const pathName = new URL(base, `http://${req.headers.host}`).pathname.slice(1);
@@ -94,8 +90,6 @@ export const staticPlugin = (options: ViteStaticOptions): PluginOption => {
9490
const result = await middleware({ options, server });
9591
return result;
9692
},
97-
// Note: another tshy problem https://github.com/isaacs/tshy/issues/96
98-
// @ts-ignore
9993
name: 'jsx-email-static'
10094
};
10195
};

packages/jsx-email/src/renderer/suspense.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Note: tshy has some bugs with dual-mode package importing in the cjs build https://github.com/isaacs/tshy/issues/50
2-
// @ts-ignore
31
import hash from 'hash-it';
42

53
const promiseMap = new Map();

packages/plugin-inline/package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,5 @@
6666
"type": "github",
6767
"url": "https://github.com/sponsors/shellscape"
6868
},
69-
"sideEffects": false,
70-
"tshy": {
71-
"exports": {
72-
"./package.json": "./package.json",
73-
".": "./src/index.ts"
74-
}
75-
}
69+
"sideEffects": false
7670
}

packages/plugin-minify/package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,5 @@
7777
"type": "github",
7878
"url": "https://github.com/sponsors/shellscape"
7979
},
80-
"sideEffects": false,
81-
"tshy": {
82-
"exports": {
83-
"./package.json": "./package.json",
84-
".": "./src/index.ts"
85-
}
86-
}
80+
"sideEffects": false
8781
}

packages/plugin-pretty/package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,5 @@
6161
"type": "github",
6262
"url": "https://github.com/sponsors/shellscape"
6363
},
64-
"sideEffects": false,
65-
"tshy": {
66-
"exports": {
67-
"./package.json": "./package.json",
68-
".": "./src/index.ts"
69-
}
70-
}
64+
"sideEffects": false
7165
}

0 commit comments

Comments
 (0)