mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
3dc8591e26
* chore: website small improvements * fix website build * Update docusaurus.config.js
27 lines
673 B
TypeScript
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 };
|