fix: careful with relative paths

This commit is contained in:
cha0s 2021-03-23 05:48:08 -05:00
parent 8ffeca7567
commit 3b7ffa6cd0

View File

@ -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`;