Replace require.main check with start script (#8005)

This commit is contained in:
Nicola Krumschmidt
2021-09-13 22:31:21 +02:00
committed by GitHub
parent b7779b7b48
commit 3e7d00982f
4 changed files with 4 additions and 7 deletions

View File

@@ -4,11 +4,6 @@ import logger from './logger';
import checkForUpdate from 'update-check';
import pkg from '../package.json';
// If this file is called directly using node, start the server
if (require.main === module) {
start();
}
export default async function start(): Promise<void> {
const createServer = require('./server').default;