The prepublish script is currently of a form that cannot ever work on a windows machine: test $(npm -v | tr . '\\n' | head -n 1) -ge '4' || exit 1 uses shell-specific syntax. If there is no cross-platform way to run this as a set of shell instructions, then there might be node projects to help turn this into something cross-platform compatible (e.g. shx and the like), or barring that, be turned into a prepublish.js that can be invoked using "prepublish": "node test/prepublish.js".
The
prepublish
script is currently of a form that cannot ever work on a windows machine:test $(npm -v | tr . '\\n' | head -n 1) -ge '4' || exit 1
uses shell-specific syntax. If there is no cross-platform way to run this as a set of shell instructions, then there might be node projects to help turn this into something cross-platform compatible (e.g.shx
and the like), or barring that, be turned into aprepublish.js
that can be invoked using"prepublish": "node test/prepublish.js"
./cc @Andarist