Vonage / vonage-node-sdk

Vonage API client for Node.js. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Apache License 2.0
375 stars 178 forks source link

fix: Reverts back to ES6 and CommonJS for better Node compatibility #777

Closed dragonmantank closed 1 year ago

dragonmantank commented 1 year ago

Description

Switches tsconflg back to using ES6 and CommonJS output, and includes tslib as a dependency to satisfy the generated JS output.

Motivation and Context

During the upgrade we switched to ES2020, which caused an issue with some of the latest releases. This pushes us back to ES6 and CommonJS output. This then caused depcheck to complain about tslib missing from various modules, so added that as a dependency.

Testing Details

Example Output or Screenshots (if appropriate)

Types of changes

Checklist