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

Use real temporary dir

ai opened this issue · comments

./tmp dir in the current dir is a bad idea since:

  1. The project maybe have it for a different purpose
  2. If you tool will throw a error tmp/ dir will not be cleaned

Node.js has a special API to create tmp dirs