Skip to content

Commit

Permalink
chore(build): build proper type exports (#44)
Browse files Browse the repository at this point in the history
* chore(build): build proper type exports

* Update SDK based on openapi.yaml changes

---------

Co-authored-by: team-devx <[email protected]>
  • Loading branch information
andrewwylde and team-devx-bot authored Aug 28, 2023
1 parent e10e1af commit 20cf6c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kong/sdk-portal-js",
"main": "dist/index.js",
"types": "./src/index.ts",
"types": "dist/types/index.d.ts",
"version": "2.1.0",
"private": false,
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
"strict": true, /* Enable all strict type-checking options. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"declaration": true,
"declarationDir": "./dist/types",
"sourceMap": true,
}
}

0 comments on commit 20cf6c1

Please sign in to comment.