syntaxhighlighter icon indicating copy to clipboard operation
syntaxhighlighter copied to clipboard

Fix npm scripts on Windows.

Open t-hamano opened this issue 2 years ago • 0 comments

Changes proposed in this Pull Request

This PR corrects the following two scripts that did not work properly in Windows.

archive

$npm_package_name is not recognized in Windows and generates an incorrectly named zip file called $npm_package_name.zip.

I installed cross-conf-env package to ensure that the correct file name is generated on any OS.

distclean

Since the rm command is not recognized on Windows, so I installed rimraf package which can be used cross-platform. At the same time, I removed rm -rf node_modules because I think it is not the purpose of the script.

This is my first PR, so please let me know if there are any problems.

t-hamano avatar Jun 10 '22 09:06 t-hamano