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 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-*"
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 11import micromatch from 'micromatch' ;
2- // Note: another tshy problem https://github.com/isaacs/tshy/issues/96
3- // @ts -ignore
42import type { PluginOption , ViteDevServer } from 'vite' ;
53
64import { 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} ;
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import { extname } from 'node:path';
33
44import { globby } from 'globby' ;
55import mime from 'mime-types' ;
6- // Note: another tshy problem https://github.com/isaacs/tshy/issues/96
7- // @ts -ignore
86import type { PluginOption , ViteDevServer } from 'vite' ;
97
108interface 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} ;
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
31import hash from 'hash-it' ;
42
53const promiseMap = new Map ( ) ;
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments