
The server/ and web/ projects use CommonJS and ES modules respectively. Ideally they should both use the same standard. ES modules is the more modern of the two and typically recommended. ESM should make development easier and more consistent. Fixes: #2770
34 lines
920 B
JSON
34 lines
920 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "node16",
|
|
"strict": true,
|
|
"declaration": true,
|
|
"removeComments": true,
|
|
"emitDecoratorMetadata": true,
|
|
"experimentalDecorators": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"resolveJsonModule": true,
|
|
"target": "es2017",
|
|
"moduleResolution": "node16",
|
|
"sourceMap": true,
|
|
"outDir": "./dist",
|
|
"incremental": true,
|
|
"skipLibCheck": true,
|
|
"esModuleInterop": true,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@test": ["test"],
|
|
"@test/*": ["test/*"],
|
|
"@app/immich": ["src/immich/index.js"],
|
|
"@app/immich/*": ["src/immich/*"],
|
|
"@app/infra": ["src/infra/index.js"],
|
|
"@app/infra/*": ["src/infra/*"],
|
|
"@app/domain": ["src/domain/index.js"],
|
|
"@app/domain/*": ["src/domain/*"]
|
|
}
|
|
},
|
|
"exclude": ["dist", "node_modules", "upload"],
|
|
"ts-node": {
|
|
"require": ["tsconfig-paths/register"]
|
|
}
|
|
}
|