fix: better error when there're no input files

This commit is contained in:
EGOIST 2021-03-17 15:26:20 +08:00
parent 07aaf393cb
commit 64072f5824

View File

@ -272,6 +272,8 @@ const normalizeOptions = async (
const input = options.entryPoints
if (input) {
options.entryPoints = await glob(input)
} else {
throw new PrettyError(`No input files, try "tsup <your-file>" instead`)
}
// Ensure entry exists