mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
chore: simplify API build (#6841)
This commit is contained in:
parent
606147be43
commit
a8dcfe4bd2
4 changed files with 11 additions and 25 deletions
|
@ -3,16 +3,16 @@
|
||||||
"version": "1.92.1",
|
"version": "1.92.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./build/esm/index.js",
|
"main": "./build/index.js",
|
||||||
"types": "./build/types/index.d.ts",
|
"types": "./build/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./build/types/index.d.ts",
|
"types": "./build/index.d.ts",
|
||||||
"default": "./build/esm/index.js"
|
"default": "./build/index.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -b ./tsconfig.esm.json ./tsconfig.types.json"
|
"build": "tsc -b ./tsconfig.json"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"outDir": "build/esm",
|
|
||||||
"module": "esnext",
|
|
||||||
"moduleResolution": "Bundler",
|
|
||||||
"lib": ["esnext", "dom"]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,7 +1,11 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"esModuleInterop": true,
|
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"skipLibCheck": true
|
"skipLibCheck": true,
|
||||||
|
"declaration": true,
|
||||||
|
"outDir": "build",
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "Bundler",
|
||||||
|
"lib": ["esnext"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"outDir": "build/types",
|
|
||||||
"declaration": true,
|
|
||||||
"emitDeclarationOnly": true,
|
|
||||||
"lib": ["es2020"]
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue