From 4079e92bbf735fc755758b05e6abcdb4fe275b5c Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 30 Jan 2024 17:59:00 -0800 Subject: [PATCH] chore: drop CJS build from API (#6783) --- open-api/typescript-sdk/package.json | 15 ++++++--------- open-api/typescript-sdk/tsconfig.cjs.json | 10 ---------- 2 files changed, 6 insertions(+), 19 deletions(-) delete mode 100644 open-api/typescript-sdk/tsconfig.cjs.json diff --git a/open-api/typescript-sdk/package.json b/open-api/typescript-sdk/package.json index c7f3ed6ae3..d0a7535c21 100644 --- a/open-api/typescript-sdk/package.json +++ b/open-api/typescript-sdk/package.json @@ -2,20 +2,17 @@ "name": "@immich/sdk", "version": "1.92.1", "description": "", - "type": "commonjs", - "main": "./build/cjs/index.js", - "module": "./build/esm/index.js", - "typings": "./build/types/index.d.ts", + "type": "module", + "main": "./build/esm/index.js", + "types": "./build/types/index.d.ts", "exports": { ".": { - "import": "./build/esm/index.js", - "require": "./build/cjs/index.js", - "default": "./build/cjs/index.js", - "types": "./build/types/index.d.ts" + "types": "./build/types/index.d.ts", + "default": "./build/esm/index.js" } }, "scripts": { - "build": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json" + "build": "tsc -b ./tsconfig.esm.json ./tsconfig.types.json" }, "license": "MIT", "devDependencies": { diff --git a/open-api/typescript-sdk/tsconfig.cjs.json b/open-api/typescript-sdk/tsconfig.cjs.json deleted file mode 100644 index 2d4e6b8268..0000000000 --- a/open-api/typescript-sdk/tsconfig.cjs.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "build/cjs", - "module": "commonjs", - "moduleResolution": "node", - "target": "es2022", - "lib": ["es2022"] - } -}