update checker middleware

Цей коміт міститься в:
rilaxik committed 2024-06-13 19:41:05 +01:00
1 джерело 9204eb81be
коміт 04412d7cbc
3 files changed
+16 -13

No files matched your search

+3
Переглянути файл
@@ -4,6 +4,8 @@ import { input, select } from '@inquirer/prompts'
import clone from 'git-clone'
import path from 'node:path'
import { checkForUpdate } from '../utils/update'
function builder(yargs: Argv) {
return yargs
.option('projectName', {
@@ -18,6 +20,7 @@ function builder(yargs: Argv) {
type: 'string',
demandOption: false,
})
.middleware(async () => await checkForUpdate())
}
async function handler(args: ArgumentsCamelCase) {