@sentry/wizard
Version:
Sentry wizard helping you to configure your project
23 lines (20 loc) • 645 B
text/typescript
import type { Answers } from 'inquirer';
import { green, nl } from '../Helper/Logging';
import { BaseStep } from './BaseStep';
export class Result extends BaseStep {
// eslint-disable-next-line @typescript-eslint/require-await
public async emit(answers: Answers): Promise<Answers> {
this.debug(answers);
nl();
if (this._argv.uninstall) {
green('😢 Successfully removed Sentry from your project 😢');
} else {
green('🎉 Successfully set up Sentry for your project 🎉');
}
// We need to exit here to stop everything
setTimeout(() => {
process.exit();
}, 100);
return {};
}
}