mirror of
https://github.com/egoist/tsup.git
synced 2025-12-08 20:35:58 +00:00
fix: better error when there're no input files
This commit is contained in:
parent
07aaf393cb
commit
64072f5824
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user