File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ logger.info('Building...');
16
16
tsconfig : path . resolve ( process . cwd ( ) , 'tsconfig.json' ) ,
17
17
minify : false ,
18
18
entryPoints : [ path . resolve ( process . cwd ( ) , 'packages/server/index.ts' ) ] ,
19
+ charset : 'utf8' ,
20
+ sourcemap : 'inline' ,
19
21
loader : {
20
22
'.frontend' : 'base64' ,
21
23
'.ttf' : 'base64' ,
Original file line number Diff line number Diff line change @@ -26,15 +26,15 @@ async function applyServer(ctx: Context) {
26
26
ctx . plugin ( ( require ( './service/db' ) ) . default ) ;
27
27
if ( config . type !== 'server' ) {
28
28
logger . info ( 'Fetch mode: ' , config . type ) ;
29
- ctx . plugin ( require ( './service/fetcher' ) ) ;
29
+ ctx . plugin ( require ( './service/fetcher' ) . fetchers [ config . type ] ) ;
30
30
}
31
- ctx . plugin ( require ( './handler/misc' ) ) ;
32
- ctx . plugin ( require ( './handler/printer ' ) ) ;
33
- ctx . plugin ( require ( './handler/monitor ' ) ) ;
34
- ctx . plugin ( require ( './handler/client ' ) ) ;
35
- ctx . plugin ( require ( './handler/balloon ' ) ) ;
36
- ctx . plugin ( require ( './handler/commands ' ) ) ;
37
- ctx . inject ( [ 'server' ] , ( c ) => {
31
+ ctx . inject ( [ 'server' , 'dbservice' ] , ( c ) => {
32
+ c . plugin ( require ( './handler/misc ' ) ) ;
33
+ c . plugin ( require ( './handler/printer ' ) ) ;
34
+ c . plugin ( require ( './handler/monitor ' ) ) ;
35
+ c . plugin ( require ( './handler/client ' ) ) ;
36
+ c . plugin ( require ( './handler/balloon ' ) ) ;
37
+ c . plugin ( require ( './handler/commands' ) ) ;
38
38
c . server . listen ( ) ;
39
39
} ) ;
40
40
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"experimentalDecorators" : true
4
- }
4
+ },
5
+ "files" : [
6
+ " packages/**/*.ts"
7
+ ]
5
8
}
You can’t perform that action at this time.
0 commit comments