Fix import order in serveronly (#3072)

To fix issue caused by #3071

In order to still fulfill the new linter rule `import/order`, I replaced
the alias with the path.

I also see two other approaches, but I opted for the simplest one here
for now.

The other approaches:
1. Also create an alias for `app`.
2. Use new `imports` (like in PR #2934), but let `_moduleAliases`
untouched to stay compatible to 3rd party modules.

**Edit**: Oh, I thought of another option:
- Add `require("module-alias/register");`
This commit is contained in:
Kristjan ESPERANTO
2023-03-25 10:59:57 +01:00
committed by GitHub
parent 5f38c53260
commit 4ef030af5f
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
const Log = require("logger");
const app = require("../js/app");
const Log = require("../js/logger");
app.start().then((config) => {
const bindAddress = config.address ? config.address : "localhost";