Skip to content

Commit 3a00eeb

Browse files
committed
updating terminal output and docs for sync
1 parent a58028d commit 3a00eeb

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ npm run dev
2323

2424
From the command line at the root of the project run:
2525

26+
```
27+
npm run sync
28+
```
29+
30+
or
31+
2632
```
2733
node lib/sync.js
2834
```

lib/sync.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,6 @@ async function createFiles(config) {
381381

382382
async function run() {
383383

384-
// load config
385-
const config = await accessNextConfig();
386-
if (config == false) exit();
387-
388-
console.log(config);
389384

390385
// terminal output of start
391386
console.log(`${chalk.gray.bold(' ')}`);
@@ -404,6 +399,12 @@ async function run() {
404399
);
405400
console.log(`${chalk.gray.bold(' ')}`);
406401

402+
403+
// load config
404+
const config = await accessNextConfig();
405+
if (config == false) exit();
406+
407+
407408
// Step 1 config check
408409
console.log(stageMark(1) + ' Config Check');
409410
const configCheckSuccess = await checkVariables(config);
@@ -433,8 +434,12 @@ async function run() {
433434
);
434435
exit();
435436
}
437+
438+
// complete exit from script
439+
rl.close()
436440
}
437441

442+
438443
// run the script
439444

440445
run();

0 commit comments

Comments
 (0)