更新pake-cli,增加Linux端targets选项,增加打包本地文件功能

This commit is contained in:
Tlntin
2022-12-29 11:05:25 +08:00
parent 6d69b1144c
commit c7717ffda5
8 changed files with 647 additions and 29 deletions

10
bin/utils/validate.ts vendored
View File

@@ -10,9 +10,9 @@ export function validateNumberInput(value: string) {
}
export function validateUrlInput(url: string) {
try {
return normalizeUrl(url);
} catch (error) {
throw new Commander.InvalidArgumentError(error.message);
}
try {
return normalizeUrl(url)
} catch (error) {
throw new Commander.InvalidArgumentError(error.message);
}
}