diff --git a/lib/dialog.ts b/lib/dialog.ts index 00dacfd..956fd6f 100644 --- a/lib/dialog.ts +++ b/lib/dialog.ts @@ -1,4 +1,4 @@ -class DialogHandler { +export class DialogHandler { public static catch (): void { process.exit (); } diff --git a/lib/snippets/copyright/index.ts b/lib/snippets/copyright/index.ts index 5312d05..e8a7451 100644 --- a/lib/snippets/copyright/index.ts +++ b/lib/snippets/copyright/index.ts @@ -12,6 +12,7 @@ import { Confirm, Input, AutoComplete } from 'enquirer'; // eslint-disable-next-line id-match import { findLicense } from 'license'; import { Snippet } from '../../Snippet'; +import { DialogHandler } from '../../dialog'; import { CopyrightGenerator } from './copyright_generator'; import { FileMapper } from './file_mapper'; import { CopyrightOptions } from './copyright_options';