Pass string, regex, or array as pattern in package.json