Skip to content

Build your personal knowledge base with Trilium Notes

chore(build): separate tsconfig for public

Elian Doran9e661ed684e0
diff --git a/src/public/tsconfig.json b/src/public/tsconfig.json
new file mode 100644
index 0000000000..923a1779d7
--- /dev/null
+++ b/src/public/tsconfig.json
@@ -0,0 +1,27 @@
+{
+ "compilerOptions": {
+ "module": "NodeNext",
+ "declaration": false,
+ "sourceMap": true,
+ "outDir": "./build",
+ "strict": true,
+ "noImplicitAny": true,
+ "resolveJsonModule": true,
+ "lib": [
+ "ES2022"
+ ],
+ "downlevelIteration": true,
+ "skipLibCheck": true,
+ "esModuleInterop": true,
+ "allowJs": true
+ },
+ "include": [
+ "**/*",
+ ],
+ "exclude": [
+ "./app-dist",
+ ],
+ "files": [
+ "./app/types.d.ts"
+ ]
+}
\ No newline at end of file
diff --git a/tsconfig.json b/tsconfig.json
index 5c32d1522b..cd4ea40e29 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,28 +1,31 @@
{
"compilerOptions": {
- "module": "NodeNext",
- "declaration": false,
- "sourceMap": true,
- "outDir": "./build",
- "strict": true,
- "noImplicitAny": true,
- "resolveJsonModule": true,
- "lib": ["ES2022"],
- "downlevelIteration": true,
- "skipLibCheck": true,
- "esModuleInterop": true,
- "allowJs": true
+ "module": "NodeNext",
+ "declaration": false,
+ "sourceMap": true,
+ "outDir": "./build",
+ "strict": true,
+ "noImplicitAny": true,
+ "resolveJsonModule": true,
+ "lib": [
+ "ES2022"
+ ],
+ "downlevelIteration": true,
+ "skipLibCheck": true,
+ "esModuleInterop": true,
},
"include": [
- "./src/**/*.js",
- "./src/**/*.ts",
- "./*.ts",
- "./spec/**/*.ts",
- "./spec-es6/**/*.ts"
+ "./src/**/*.js",
+ "./src/**/*.ts",
+ "./*.ts",
+ "./spec/**/*.ts",
+ "./spec-es6/**/*.ts"
+ ],
+ "exclude": [
+ "./src/public/**/*",
+ "./node_modules/**/*"
],
- "exclude": ["./node_modules/**/*"],
"files": [
- "src/types.d.ts",
- "src/public/app/types.d.ts"
+ "src/types.d.ts"
]
-}
+}
\ No newline at end of file