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

Clean package.json sections

ai opened this issue · comments

The reason behind Cult of Martians task was not to clean files (like .eslintrc). We already have .npmignore for it.

The reason was to clean package.json. For example, "eslintConfig": key in package.json.

Also we need to clean all non-system (like postinstall) scrips from scripts field of package.json.

Clearing package.json works.
It remains to make scripts clean.

Completed: a47793b

А нам точно нужны скрипты prepublish или start?

Я взял список скриптов отсюда https://docs.npmjs.com/misc/scripts#description. Изучу вопрос более детально и внесу правки, если они понадобятся.

Ага, но список перед копированием надо изучить. Многие эти системные скрипты нужны для разработки.

Исправил список