syntaxhighlighter
syntaxhighlighter copied to clipboard
Fix npm scripts on Windows.
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.