File tree 2 files changed +16
-5
lines changed
2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ npm run dev
23
23
24
24
From the command line at the root of the project run:
25
25
26
+ ```
27
+ npm run sync
28
+ ```
29
+
30
+ or
31
+
26
32
```
27
33
node lib/sync.js
28
34
```
Original file line number Diff line number Diff line change @@ -381,11 +381,6 @@ async function createFiles(config) {
381
381
382
382
async function run ( ) {
383
383
384
- // load config
385
- const config = await accessNextConfig ( ) ;
386
- if ( config == false ) exit ( ) ;
387
-
388
- console . log ( config ) ;
389
384
390
385
// terminal output of start
391
386
console . log ( `${ chalk . gray . bold ( ' ' ) } ` ) ;
@@ -404,6 +399,12 @@ async function run() {
404
399
) ;
405
400
console . log ( `${ chalk . gray . bold ( ' ' ) } ` ) ;
406
401
402
+
403
+ // load config
404
+ const config = await accessNextConfig ( ) ;
405
+ if ( config == false ) exit ( ) ;
406
+
407
+
407
408
// Step 1 config check
408
409
console . log ( stageMark ( 1 ) + ' Config Check' ) ;
409
410
const configCheckSuccess = await checkVariables ( config ) ;
@@ -433,8 +434,12 @@ async function run() {
433
434
) ;
434
435
exit ( ) ;
435
436
}
437
+
438
+ // complete exit from script
439
+ rl . close ( )
436
440
}
437
441
442
+
438
443
// run the script
439
444
440
445
run ( ) ;
You can’t perform that action at this time.
0 commit comments