From d76330d7958ea5a3a598cb88abd794526c22441e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isabella=20Sko=C5=99epov=C3=A1?= <isabella@skorepova.info> Date: Thu, 7 Nov 2019 15:06:46 +0100 Subject: [PATCH] Fix --- index.js | 12 ++++++++---- nodemon.json | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 2492b036..82b7cdab 100755 --- a/index.js +++ b/index.js @@ -4,12 +4,16 @@ const config = require('./sitegin/config') ;(async () => { const opts = await config() - if (opts.noserver) { - require('sitegin/index.js') + if (opts.config.options.nowatch) { + require('./sitegin/index.js') } else { - opts.spawnSync( + spawnSync( process.argv[0], - ['./node_modules/.bin/nodemon', 'sitegin/index.js'], + [ + './node_modules/.bin/nodemon', + 'sitegin/index.js', + ...process.argv.slice(2), + ], { stdio: ['inherit', 'inherit', 'inherit'] }, ) } diff --git a/nodemon.json b/nodemon.json index 70753939..76916c73 100644 --- a/nodemon.json +++ b/nodemon.json @@ -1,4 +1,4 @@ { "verbose": true, - "ignore": ["build-debug"] + "ignore": ["build-debug", "build"] } \ No newline at end of file -- GitLab