mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -05:00
28 lines
673 B
TypeScript
28 lines
673 B
TypeScript
|
import { Cli } from 'clipanion';
|
||
|
|
||
|
import { ApiCommand } from './api';
|
||
|
|
||
|
const [node, app, ...args] = process.argv;
|
||
|
|
||
|
const cli = new Cli({
|
||
|
binaryLabel: `translations`,
|
||
|
binaryName: `${node} ${app}`,
|
||
|
binaryVersion: require('../package.json').version,
|
||
|
});
|
||
|
|
||
|
cli.register(ApiCommand);
|
||
|
cli.runExit(args, Cli.defaultContext);
|
||
|
|
||
|
process.on('uncaughtException', function (err) {
|
||
|
// eslint-disable-next-line no-console
|
||
|
console.error(
|
||
|
// eslint-disable-next-line max-len
|
||
|
`uncaught exception, please report (https://github.com/verdaccio/verdaccio/issues) this: \n${err.stack}`
|
||
|
);
|
||
|
process.exit(1);
|
||
|
});
|
||
|
|
||
|
const data = require('./progress_lang.json');
|
||
|
|
||
|
export { data };
|