File tree Expand file tree Collapse file tree 8 files changed +5
-44
lines changed Expand file tree Collapse file tree 8 files changed +5
-44
lines changed Original file line number Diff line number Diff line change 33
33
34
34
- name : Build Projects
35
35
run : |
36
+ cd packages/jsx-email && pnpm exec tsc --showConfig
36
37
moon jsx-email:build
37
38
moon create-jsx-email:build
38
39
moon run :build --query "project~plugin-*"
Original file line number Diff line number Diff line change 124
124
"url" : " https://github.com/sponsors/shellscape"
125
125
},
126
126
"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
136
128
}
Original file line number Diff line number Diff line change 1
1
import micromatch from 'micromatch' ;
2
- // Note: another tshy problem https://github.com/isaacs/tshy/issues/96
3
- // @ts -ignore
4
2
import type { PluginOption , ViteDevServer } from 'vite' ;
5
3
6
4
import { normalizePath } from './commands/build.mjs' ;
@@ -15,8 +13,6 @@ export const reloadPlugin = (options: ViteReloadOptions): PluginOption => {
15
13
16
14
return {
17
15
apply : 'serve' ,
18
- // Note: and yet another tshy problem
19
- // @ts -ignore
20
16
config ( { server } ) {
21
17
/* eslint-disable no-param-reassign */
22
18
if ( ! server ) server = { } ;
@@ -34,8 +30,6 @@ export const reloadPlugin = (options: ViteReloadOptions): PluginOption => {
34
30
}
35
31
} ) ;
36
32
} ,
37
- // Note: another tshy problem https://github.com/isaacs/tshy/issues/96
38
- // @ts -ignore
39
33
name : 'jsx-email-reload'
40
34
} ;
41
35
} ;
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import { extname } from 'node:path';
3
3
4
4
import { globby } from 'globby' ;
5
5
import mime from 'mime-types' ;
6
- // Note: another tshy problem https://github.com/isaacs/tshy/issues/96
7
- // @ts -ignore
8
6
import type { PluginOption , ViteDevServer } from 'vite' ;
9
7
10
8
interface ViteStaticOptions {
@@ -55,8 +53,6 @@ const middleware = async (params: MiddlwareParams) => {
55
53
const files = await globby ( paths ) ;
56
54
57
55
return ( ) => {
58
- // Note: another tshy problem https://github.com/isaacs/tshy/issues/96
59
- // @ts -ignore
60
56
server . middlewares . use ( async ( req , res , next ) => {
61
57
const base = req . originalUrl ?? '' ;
62
58
const pathName = new URL ( base , `http://${ req . headers . host } ` ) . pathname . slice ( 1 ) ;
@@ -94,8 +90,6 @@ export const staticPlugin = (options: ViteStaticOptions): PluginOption => {
94
90
const result = await middleware ( { options, server } ) ;
95
91
return result ;
96
92
} ,
97
- // Note: another tshy problem https://github.com/isaacs/tshy/issues/96
98
- // @ts -ignore
99
93
name : 'jsx-email-static'
100
94
} ;
101
95
} ;
Original file line number Diff line number Diff line change 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
3
1
import hash from 'hash-it' ;
4
2
5
3
const promiseMap = new Map ( ) ;
Original file line number Diff line number Diff line change 66
66
"type" : " github" ,
67
67
"url" : " https://github.com/sponsors/shellscape"
68
68
},
69
- "sideEffects" : false ,
70
- "tshy" : {
71
- "exports" : {
72
- "./package.json" : " ./package.json" ,
73
- "." : " ./src/index.ts"
74
- }
75
- }
69
+ "sideEffects" : false
76
70
}
Original file line number Diff line number Diff line change 77
77
"type" : " github" ,
78
78
"url" : " https://github.com/sponsors/shellscape"
79
79
},
80
- "sideEffects" : false ,
81
- "tshy" : {
82
- "exports" : {
83
- "./package.json" : " ./package.json" ,
84
- "." : " ./src/index.ts"
85
- }
86
- }
80
+ "sideEffects" : false
87
81
}
Original file line number Diff line number Diff line change 61
61
"type" : " github" ,
62
62
"url" : " https://github.com/sponsors/shellscape"
63
63
},
64
- "sideEffects" : false ,
65
- "tshy" : {
66
- "exports" : {
67
- "./package.json" : " ./package.json" ,
68
- "." : " ./src/index.ts"
69
- }
70
- }
64
+ "sideEffects" : false
71
65
}
You can’t perform that action at this time.
0 commit comments