File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 11import log from 'loglevel' ;
2+ import updateNotifier from 'update-notifier' ;
3+ import packageJson from '../package.json' ;
24import BuilderProvider from './builders/BuilderProvider' ;
3- import { checkUpdateTips } from './helpers/updater' ;
45import handleInputOptions from './options/index' ;
56import { getCliProgram } from './helpers/cli-program' ;
67import { PakeCliOptions } from './types' ;
78
89const program = getCliProgram ( ) ;
910
11+ async function checkUpdateTips ( ) {
12+ updateNotifier ( { pkg : packageJson , updateCheckInterval : 1000 * 60 } ) . notify ( {
13+ isGlobal : true ,
14+ } ) ;
15+ }
16+
1017program . action ( async ( url : string , options : PakeCliOptions ) => {
1118 await checkUpdateTips ( ) ;
1219
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3838 "analyze" : " cd src-tauri && cargo bloat --release --crates" ,
3939 "tauri" : " tauri" ,
4040 "cli" : " cross-env NODE_ENV=development rollup -c -w" ,
41- "cli:dev" : " cross-env NODE_ENV=development rollup -c -w" ,
4241 "cli:build" : " cross-env NODE_ENV=production rollup -c" ,
4342 "test" : " pnpm run cli:build && cross-env PAKE_CREATE_APP=1 node tests/index.js" ,
4443 "format" : " prettier --write . --ignore-unknown && find tests -name '*.js' -exec sed -i '' 's/[[:space:]]*$//' {} \\ ; && cd src-tauri && cargo fmt --verbose" ,
You can’t perform that action at this time.
0 commit comments