can pass regex, string or array as pattern in package.json