Skip to content

Commit

Permalink
chore: Add node16 option (#5184)
Browse files Browse the repository at this point in the history
* add node16 option

* Changes from lint:fix

---------

Co-authored-by: cloud-sdk-js <[email protected]>
  • Loading branch information
deekshas8 and cloud-sdk-js authored Nov 15, 2024
1 parent 20c9aca commit 3138447
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/chilled-colts-heal.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@sap-cloud-sdk/generator-common': minor
---

[Fixed Issue] Fix ESM client code compilation by allowing the `module` option to be set to `nodenext` in a custom `tsconfig.json` file.
[Fixed Issue] Fix ESM client code compilation by allowing the `module` option to be set to `nodenext` or `node16` in a custom `tsconfig.json` file.
1 change: 1 addition & 0 deletions .github/actions/check-public-api/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/generator-common/src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ function parseModuleKind(input: string): ModuleKind {
es2015: ModuleKind.ES2015,
es2020: ModuleKind.ES2020,
esnext: ModuleKind.ESNext,
node16: ModuleKind.Node16,
nodenext: ModuleKind.NodeNext
};

Expand Down

0 comments on commit 3138447

Please sign in to comment.