clean-publish icon indicating copy to clipboard operation
clean-publish copied to clipboard

Feature: Auto-run prepublish script

Open retyui opened this issue 5 years ago • 2 comments

I think this tool has to run prepublishOnly or prepublish scripts from package.json after start clone some files

retyui avatar Aug 12 '19 15:08 retyui

@shashkovdanil

https://github.com/shashkovdanil/clean-publish/blob/5bd50640cd64a9c8f0503bfce25133fafc6a1826/exception/npm-scripts.js#L6

prepublishOnly: Run BEFORE the package is prepared and packed, ONLY on npm publish. (See below.)

https://docs.npmjs.com/misc/scripts

retyui avatar Aug 19 '19 18:08 retyui

prepublish can change only the current dir, which is not a case to remove development files

ai avatar Mar 04 '21 15:03 ai