From a8dcfe4bd29abec85e657450e6df0c6738fb0c7f Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Thu, 1 Feb 2024 14:55:21 -0800 Subject: [PATCH] chore: simplify API build (#6841) --- open-api/typescript-sdk/package.json | 10 +++++----- open-api/typescript-sdk/tsconfig.esm.json | 9 --------- open-api/typescript-sdk/tsconfig.json | 8 ++++++-- open-api/typescript-sdk/tsconfig.types.json | 9 --------- 4 files changed, 11 insertions(+), 25 deletions(-) delete mode 100644 open-api/typescript-sdk/tsconfig.esm.json delete mode 100644 open-api/typescript-sdk/tsconfig.types.json diff --git a/open-api/typescript-sdk/package.json b/open-api/typescript-sdk/package.json index d0a7535c21..e1c94e5b66 100644 --- a/open-api/typescript-sdk/package.json +++ b/open-api/typescript-sdk/package.json @@ -3,16 +3,16 @@ "version": "1.92.1", "description": "", "type": "module", - "main": "./build/esm/index.js", - "types": "./build/types/index.d.ts", + "main": "./build/index.js", + "types": "./build/index.d.ts", "exports": { ".": { - "types": "./build/types/index.d.ts", - "default": "./build/esm/index.js" + "types": "./build/index.d.ts", + "default": "./build/index.js" } }, "scripts": { - "build": "tsc -b ./tsconfig.esm.json ./tsconfig.types.json" + "build": "tsc -b ./tsconfig.json" }, "license": "MIT", "devDependencies": { diff --git a/open-api/typescript-sdk/tsconfig.esm.json b/open-api/typescript-sdk/tsconfig.esm.json deleted file mode 100644 index 408b20f75f..0000000000 --- a/open-api/typescript-sdk/tsconfig.esm.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "build/esm", - "module": "esnext", - "moduleResolution": "Bundler", - "lib": ["esnext", "dom"] - } -} diff --git a/open-api/typescript-sdk/tsconfig.json b/open-api/typescript-sdk/tsconfig.json index b87e6dfb98..62c64e5be0 100644 --- a/open-api/typescript-sdk/tsconfig.json +++ b/open-api/typescript-sdk/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { - "esModuleInterop": true, "strict": true, - "skipLibCheck": true + "skipLibCheck": true, + "declaration": true, + "outDir": "build", + "module": "esnext", + "moduleResolution": "Bundler", + "lib": ["esnext"] } } diff --git a/open-api/typescript-sdk/tsconfig.types.json b/open-api/typescript-sdk/tsconfig.types.json deleted file mode 100644 index 7453ccd158..0000000000 --- a/open-api/typescript-sdk/tsconfig.types.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "build/types", - "declaration": true, - "emitDeclarationOnly": true, - "lib": ["es2020"] - } -}