chore: cleanup

This commit is contained in:
Alexis Tyler
2020-12-01 09:06:21 +10:30
parent f9405db095
commit c38ed52c81
4 changed files with 7 additions and 6 deletions

View File

@@ -49,4 +49,4 @@ am(async () => {
// eslint-disable-next-line unicorn/no-process-exit
process.exit(1);
});
});
});

View File

@@ -186,6 +186,7 @@ class MothershipService {
try {
mothershipLogger.debug('Connection closed with code %s.', code);
// Stop ws heartbeat
if (this.pingTimeout) {
clearTimeout(this.pingTimeout);
}

View File

@@ -1,7 +1,6 @@
import type { CoreResult } from './core/types';
import { pubsub, utils, coreLogger } from './core';
const { debugTimer } = utils;
import { pubsub, coreLogger } from './core';
import { debugTimer } from './core/utils';
/**
* Publish update to topic channel.

View File

@@ -6,8 +6,9 @@
"author": "Alexis Tyler <xo@wvvw.me> (https://wvvw.me/)",
"license": "UNLICENSED",
"scripts": {
"build": "npm run bundle && npm run copy-schemas",
"bundle": "npx tsup ./app/index.ts --minify",
"build": "npm run bundle-minify && npm run copy-schemas",
"bundle": "npx tsup ./app/index.ts",
"bundle-minify": "npx tsup ./app/index.ts --minify",
"bundle-dependencies": "bundle-dependencies update",
"copy-schemas": "cpx app/**/*.graphql dist/types",
"clean": "modclean --no-progress --run --path .",