Convert to npm commonjs format.