更新pake-cli,增加Linux端targets选项,增加打包本地文件功能
This commit is contained in:
10
bin/utils/validate.ts
vendored
10
bin/utils/validate.ts
vendored
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user