This repository was archived by the owner on May 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed
Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 , './' )
Original file line number Diff line number Diff line change 11import ora from 'ora'
22import { 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'
55const isTest = process . env . NODE_ENV === 'test'
66/**
77 * 判断NPM包自动更新
Original file line number Diff line number Diff line change 1- /// <reference types="node" />
2- import { exec } from 'child_process' ;
31import { Optional } from '../interface/option' ;
42export 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 ;
86export declare const getWithPromise : ( url : string ) => Promise < any > ;
97/**
108 * http
You can’t perform that action at this time.
0 commit comments