refactor: tailchat-cli@1.5.14 remove ghproxy because server is down #192

pull/193/head
moonrailgun 1 year ago
parent 9b48a1b0e2
commit 445b538224

@ -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"

@ -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 <source>',
describe: 'Tailchat plugin type declaration',

@ -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',

@ -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}`;

Loading…
Cancel
Save