From 20cf6c1a29420851c0e62d578547c5c0a6762fdc Mon Sep 17 00:00:00 2001 From: Andrew Wylde Date: Mon, 28 Aug 2023 10:30:06 -0500 Subject: [PATCH] chore(build): build proper type exports (#44) * chore(build): build proper type exports * Update SDK based on openapi.yaml changes --------- Co-authored-by: team-devx --- package.json | 2 +- tsconfig.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e2e60d5..be99c48 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/tsconfig.json b/tsconfig.json index 0ce4b5b..e08e301 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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, } }