From 3b7ffa6cd0f2cb84a872414fd16aa068a30628d5 Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 23 Mar 2021 05:48:08 -0500 Subject: [PATCH] fix: careful with relative paths --- packages/http/src/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/http/src/server.js b/packages/http/src/server.js index d840875..727f13c 100644 --- a/packages/http/src/server.js +++ b/packages/http/src/server.js @@ -1,4 +1,5 @@ import {spawn} from 'child_process'; +import {join} from 'path'; import {require as R} from '@latus/core'; @@ -26,7 +27,7 @@ export default { || process.argv.find((arg) => 'production' === arg) ) { // eslint-disable-next-line no-param-reassign - configs.http = R('./build/.neutrinorc'); + configs.http = R(join(__dirname, 'build/.neutrinorc.js')); } else if (-1 === excludeBuilds.indexOf('http')) { const binary = `$(npm --prefix ${process.cwd()} bin)/webpack-dev-server`;