Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"install-mm:dev": "npm install --no-audit --no-fund --no-update-notifier && npx playwright install chromium",
"lint:fix": "eslint --fix && prettier . --write",
"prepare": "[ -f node_modules/.bin/husky ] && husky || echo no husky installed.",
"server": "node ./serveronly",
"server": "node ./serveronly/index.mjs",
"server:watch": "node ./serveronly/watcher.mjs",
"start": "node --run start:wayland",
"start:dev": "node --run start:wayland -- dev",
Expand Down
10 changes: 4 additions & 6 deletions serveronly/index.js → serveronly/index.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
require("../js/alias-resolver");

const Log = require("../js/logger");
const { getServerPort } = require("#server_functions");

import "../js/alias-resolver.js";
import Log from "../js/logger.js";
import app from "../js/app.mjs";
import { getServerPort } from "#server_functions";

const startServer = async () => {
const { default: app } = await import("../js/app.mjs");
const config = await app.start();
const bindAddress = config.address ? config.address : "localhost";
const httpType = config.useHttps ? "https" : "http";
Expand Down
2 changes: 1 addition & 1 deletion serveronly/watcher.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const waitForPort = async (port, maxAttempts = PORT_CHECK_MAX_ATTEMPTS) => {
*/
const startServer = () => {
// Start node directly instead of via npm to avoid process tree issues
child = spawn("node", ["./serveronly"], {
child = spawn("node", ["./serveronly/index.mjs"], {
stdio: "inherit",
cwd: rootDir
});
Expand Down