mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Housekeeping & Update Reject Hosts
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import process from 'node:process';
|
||||
import os from 'node:os';
|
||||
import wtf from 'wtfnode';
|
||||
|
||||
import { downloadPreviousBuild } from './download-previous-build';
|
||||
import { buildCommon } from './build-common';
|
||||
@@ -26,7 +25,7 @@ import { downloadMockAssets } from './download-mock-assets';
|
||||
|
||||
import { buildCloudMounterRules } from './build-cloudmounter-rules';
|
||||
|
||||
import { createSpan, printTraceResult } from './trace';
|
||||
import { createSpan, printTraceResult, whyIsNodeRunning } from './trace';
|
||||
import { buildDeprecateFiles } from './build-deprecate-files';
|
||||
|
||||
process.on('uncaughtException', (error) => {
|
||||
@@ -122,7 +121,7 @@ process.on('unhandledRejection', (reason) => {
|
||||
printTraceResult(rootSpan.traceResult);
|
||||
|
||||
// Finish the build to avoid leaking timer/fetch ref
|
||||
wtf.dump();
|
||||
await whyIsNodeRunning();
|
||||
process.exit(0);
|
||||
} catch (e) {
|
||||
console.error('Something went wrong!');
|
||||
|
||||
Reference in New Issue
Block a user