diff --git a/apps/cli/package.json b/apps/cli/package.json index 998cfcec..7153a57a 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -1,6 +1,6 @@ { "name": "tailchat-cli", - "version": "1.5.13", + "version": "1.5.14", "description": "A Command line interface of tailchat", "bin": { "tailchat": "./bin/cli" diff --git a/apps/cli/src/commands/declaration.ts b/apps/cli/src/commands/declaration.ts index 3d7f59e9..eac848a7 100644 --- a/apps/cli/src/commands/declaration.ts +++ b/apps/cli/src/commands/declaration.ts @@ -4,12 +4,9 @@ import fs, { mkdirp } from 'fs-extra'; import path from 'path'; import ora from 'ora'; import got from 'got'; -import { withGhProxy } from '../utils'; - -const onlineDeclarationUrl = withGhProxy( - 'https://raw.githubusercontent.com/msgbyte/tailchat/master/client/web/tailchat.d.ts' -); +const onlineDeclarationUrl = + 'https://raw.githubusercontent.com/msgbyte/tailchat/master/client/web/tailchat.d.ts'; export const declarationCommand: CommandModule = { command: 'declaration ', describe: 'Tailchat plugin type declaration', diff --git a/apps/cli/src/commands/docker/init.ts b/apps/cli/src/commands/docker/init.ts index 8d6ed579..9dbdfdec 100644 --- a/apps/cli/src/commands/docker/init.ts +++ b/apps/cli/src/commands/docker/init.ts @@ -35,12 +35,10 @@ Run the following command to complete the image download and start: - ${chalk.bold('docker compose up -d')} ${chalk.gray('# Start service')} ================`); -const envUrl = withGhProxy( - 'https://raw.githubusercontent.com/msgbyte/tailchat/master/docker-compose.env' -); -const configUrl = withGhProxy( - 'https://raw.githubusercontent.com/msgbyte/tailchat/master/docker-compose.yml' -); +const envUrl = + 'https://raw.githubusercontent.com/msgbyte/tailchat/master/docker-compose.env'; +const configUrl = + 'https://raw.githubusercontent.com/msgbyte/tailchat/master/docker-compose.yml'; export const dockerInitCommand: CommandModule = { command: 'init', diff --git a/apps/cli/src/utils.ts b/apps/cli/src/utils.ts index 1ba32d78..47cc5c93 100644 --- a/apps/cli/src/utils.ts +++ b/apps/cli/src/utils.ts @@ -7,6 +7,8 @@ export function isDev(): boolean { /** * Add github resource proxy to optimize chinese access speed + * + * @deprecated this website is down */ export function withGhProxy(url: string): string { return `https://ghproxy.com/${url}`;