Skip to content

Commit

Permalink
Support ES Modules by making Nylas SDK a dual package (#477)
Browse files Browse the repository at this point in the history
This PR makes the Nylas SDK a dual package supporting both CommonJS and ES Module syntax. Now, the SDK's distribution package will include 3 directories:

- lib/cjs: for CommonJS
- lib/esm: for ES Modules
- lib/types: for the TypeScript declaration files

Furthermore we've also upgraded the tsconfig to target es2021 as it's the newest ECMAScript version that is fully supported by the minimum Node version supported by the SDK (v16).
  • Loading branch information
mrashed-dev authored Aug 15, 2023
1 parent 2ea65dd commit 348b959
Show file tree
Hide file tree
Showing 8 changed files with 359 additions and 54 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ CTAGS
.idea
coverage
docs
cjs
esm
Loading

0 comments on commit 348b959

Please sign in to comment.