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, } }