Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit 56d1d0e

Browse files
committed
version: update yk-cli (#78)
1 parent a594624 commit 56d1d0e

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

packages/yk-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yk-cli",
3-
"version": "2.2.1",
3+
"version": "2.2.3",
44
"description": "ykcli for ssr",
55
"main": "./bin/index.js",
66
"types": "types/index.d.ts",

packages/yk-cli/src/cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function cacheMange (option: Optional): Promise<void> {
1515
// 如果没有缓存可用或者远程代码更新则拉取最新代码
1616
if (!useCache) {
1717
shell.rm('-rf', resolveApp('./cache'))
18-
await downloadWithPromise('github:ykfe/egg-react-ssr#master', resolveApp('./cache'))
18+
await downloadWithPromise('github:ykfe/egg-react-ssr#dev', resolveApp('./cache'))
1919
}
2020
const example = resolveApp(`./cache/example/ssr-with-${language}`)
2121
shell.cp('-rf', example, './')

packages/yk-cli/src/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ora from 'ora'
22
import { execWithPromise, getWithPromise, resolveApp } from './util/index'
33

4-
const url = 'https://raw.githubusercontent.com/ykfe/egg-react-ssr/master/packages/yk-cli/package.json'
4+
const url = 'https://raw.githubusercontent.com/ykfe/egg-react-ssr/dev/packages/yk-cli/package.json'
55
const isTest = process.env.NODE_ENV === 'test'
66
/**
77
* 判断NPM包自动更新

packages/yk-cli/types/util/index.d.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
/// <reference types="node" />
2-
import { exec } from 'child_process';
31
import { Optional } from '../interface/option';
42
export declare const processError: (err: string) => void;
5-
export declare const execWithPromise: typeof exec.__promisify__;
6-
export declare const downloadWithPromise: Function;
7-
export declare const resolveApp: (source: string) => string;
3+
export declare const execWithPromise: any;
4+
export declare const downloadWithPromise: any;
5+
export declare const resolveApp: (source: string) => any;
86
export declare const getWithPromise: (url: string) => Promise<any>;
97
/**
108
* http

0 commit comments

Comments
 (0)