virmator
Version:
Handle common package configs, commands, and dependencies.
23 lines (22 loc) • 722 B
JavaScript
/* node:coverage disable */
/** This file can only be tested via the command line. */
import { log } from '@augment-vir/common';
import { executeVirmatorCommand, hideNoTraceTraces, VirmatorNoTraceError } from '@virmator/core';
import { fileURLToPath } from 'node:url';
import { defaultVirmatorPlugins } from './index.js';
executeVirmatorCommand({
cliCommand: process.argv,
plugins: defaultVirmatorPlugins,
entryPointFilePath: fileURLToPath(import.meta.url),
log,
}).catch((error) => {
if (error instanceof VirmatorNoTraceError && hideNoTraceTraces) {
if (error.message) {
log.error(error.message);
}
}
else {
log.error(error);
}
process.exit(1);
});