Skip to content

High performance self-hosted photo and video management solution.

chore: drop CJS build from API (#6783)

Ben McCann4079e92bbf73
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"]
- }
-}