Generate package version in version.ts
Get the current package version from package.json and write it to version.ts
Importing the version directly from package.json meant it had to create two copies of package.json for both versions of the library. The module js version and common js version