type Script = string | string[]; type Entry = Script | ((filenames: string[]) => Script | Promise