diff --git a/package.json b/package.json index 793989b..20632a8 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "compare-func": "^2.0.0", "conventional-recommended-bump": "^9.0.0", "execa": "^8.0.1", - "git-cliff": "^2.0.4", + "git-cliff": "^2.1.2", "js-yaml": "^4.1.0", "semver": "^7.6.0" }, diff --git a/src/lib/preflight-checks.ts b/src/lib/preflight-checks.ts index 09730eb..0a00c23 100644 --- a/src/lib/preflight-checks.ts +++ b/src/lib/preflight-checks.ts @@ -2,11 +2,9 @@ import { packageCwd } from '#lib/constants'; import { createFile } from '#lib/createFile'; import { fileExists } from '#lib/fileExists'; import { logVerboseError } from '#lib/logger'; -import { pressEnterToContinue } from '#lib/pressEnterToContinue'; import { doActionAndLog, getGitHubRepo, getGitHubToken, readJson } from '#lib/utils'; import { isNullishOrEmpty } from '@sapphire/utilities'; import type { Options } from 'commander'; -import { platform } from 'node:os'; import { join } from 'node:path'; export async function preflightChecks(options: Options) { @@ -28,21 +26,6 @@ export async function preflightChecks(options: Options) { const githubRepo = getGitHubRepo(options); if (!isNullishOrEmpty(githubRepo)) { - const os = platform(); - if (os === 'win32') { - logVerboseError({ - text: [ - 'GitHub integration is currently not functional on Windows due to limitations in git-cliff.', - 'For more information, see https://github.com/orhun/git-cliff/issues/514', - '', - 'This means that any GitHub integration markup in your cliff.toml such as "commit.github." will not work.' - ], - verbose: options.verbose - }); - - await pressEnterToContinue(); - } - const githubToken = getGitHubToken(options); if (isNullishOrEmpty(githubToken)) { diff --git a/src/lib/pressEnterToContinue.ts b/src/lib/pressEnterToContinue.ts deleted file mode 100644 index 8f22b72..0000000 --- a/src/lib/pressEnterToContinue.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { cyan } from 'colorette'; - -export function pressEnterToContinue() { - process.stdout.write(cyan('If you wish to continue anyway press enter key, if you wish to exit, press any other key...')); - - return new Promise((resolve, reject) => { - const handler = (buffer: Buffer) => { - process.stdin.removeListener('data', handler); - process.stdin.setRawMode(false); - process.stdin.pause(); - process.stdout.write('\n'); - - const bytes = Array.from(buffer); - - if (bytes?.[0] === 13) { - process.nextTick(resolve); - } else { - reject(process.exit(1)); - } - }; - - process.stdin.resume(); - process.stdin.setRawMode(true); - process.stdin.once('data', handler); - }); -}