feat: Support more CLI flags for build and dev (#9)

This commit is contained in:
Aaron
2023-06-25 12:23:04 -05:00
committed by GitHub
parent b400e5424a
commit 9ef451be2e
7 changed files with 81 additions and 44 deletions
+3 -3
View File
@@ -2,10 +2,10 @@ import { consola } from 'consola';
import { printHeader } from './printHeader';
import { formatDuration } from '../../utils/formatDuration';
export function defineCommand(
cb: (...args: any[]) => void | boolean | Promise<void | boolean>,
export function defineCommand<TArgs extends any[]>(
cb: (...args: TArgs) => void | boolean | Promise<void | boolean>,
) {
return async (...args: any[]) => {
return async (...args: TArgs) => {
const startTime = Date.now();
try {
printHeader();