0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/packages/tools/translations/src/index.ts
Juan Picado 3dc8591e26
chore: website small improvements (#3412)
* chore: website small improvements

* fix website build

* Update docusaurus.config.js
2022-10-01 14:08:40 +02:00

27 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 };