npm prepare script should be used instead of prepack

When trying to use a twing fork, the typescript compilation fails because prepack occurs before the node_modules are installed.

Source: https://stackoverflow.com/a/57503862

Edited by Eric MORAND