nylas / nylas-nodejs

A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.
MIT License
167 stars 117 forks source link

Get SDK version reliably #480

Closed mrashed-dev closed 1 year ago

mrashed-dev commented 1 year ago

Description

Because of how we are building our SDK now with the ES Module addition in #477 it has caused importing the package.json file to be a bit more tricky given that it no longer exists one directory up. Instead we just generate a version file post-build and during the npm version call and we pull the version from that file. The file is written, and sources the version from, the package.json file.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.