Skip to content

High performance self-hosted photo and video management solution.

chore: simplify API build (#6841)

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