put test and build commands in package.json for npm invocation