This repository was archived by the owner on Jan 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export class DataServer {
39
39
40
40
constructor ( server ?: any , port ?: number , host ?: string ) {
41
41
this . states = new Set ( )
42
- this . cached = fs . readJsonSync ( paths . db )
42
+ this . cached = fs . readJsonSync ( paths . db , { throws : false } )
43
43
this . state = { }
44
44
45
45
if ( server ) {
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ export const build = async (args: Config) => {
19
19
try {
20
20
dataServer . register ( [ states . entries ( config ) , states . config ( config ) ] )
21
21
22
- await dataServer . init ( )
23
22
await Entries . writeApp ( config )
23
+ await dataServer . init ( )
24
24
25
25
await run ( 'onPreBuild' )
26
26
await bundler . build ( await bundler . getConfig ( env ) )
Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ export const dev = async (args: Config) => {
35
35
try {
36
36
dataServer . register ( [ states . entries ( newConfig ) , states . config ( newConfig ) ] )
37
37
38
+ await Entries . writeApp ( newConfig , true )
38
39
await dataServer . init ( )
39
40
await dataServer . listen ( )
40
- await Entries . writeApp ( newConfig , true )
41
41
} catch ( err ) {
42
42
logger . fatal ( 'Failed to process your server:' , err )
43
43
process . exit ( 1 )
You can’t perform that action at this time.
0 commit comments