Closed Raibaz closed 7 years ago
Note that i had to add "test": "mocha --recursive"
to explicitly define the test suite runner script, since having a scripts
property in package.json
overrides the defaults.
Whops i didn't notice package.json
already had a scripts section and I copypasted the stackoverflow solution without linting it...sorry :(
Should be ok now.
sweet! thanks for the quick fix
This should solve #82 with this solution proposed in the issue comments.
A script has been added in the
scripts
folder to check the current node version against the one required inpackage.json
and the script execution has been bound to thepreinstall
stage in the package file itself.Unfortunately this adds a dependency from
semver
, but I guess there is no easier way to handle version comparison than adding an external dependency.