add rebuild to npm scripts