shashkovdanil / clean-publish

Removing configuration files and fields in package.json before publishing to npm

Home Page:https://www.npmjs.com/package/clean-publish

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: use regexps

Kelin2025 opened this issue · comments

Hi, nice idea!

But it might be useful to use regexps in ignore list too. Because even ESLint has 5 variations of config name:

image

Better use one regexp rather than copy-paste each variation I think 🤔

I can use the String.startsWith method.

It will drop Node 6