Extract is-production to npm.