adding a prepublish script to perform a sanity check before publishing to npm