mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	chore(desktop/esbuild): convert webpack config
This commit is contained in:
		| @@ -44,6 +44,46 @@ | ||||
|   "nx": { | ||||
|     "name": "desktop", | ||||
|     "targets": { | ||||
|       "build": { | ||||
|         "executor": "@nx/esbuild:esbuild", | ||||
|         "outputs": [ | ||||
|           "{options.outputPath}" | ||||
|         ], | ||||
|         "options": { | ||||
|           "main": "apps/desktop/src/electron-main.ts", | ||||
|           "outputPath": "apps/desktop/dist", | ||||
|           "outputFileName": "main.js", | ||||
|           "tsConfig": "apps/desktop/tsconfig.app.json", | ||||
|           "platform": "node", | ||||
|           "external": [ | ||||
|             "electron", | ||||
|             "@electron/remote", | ||||
|             "better-sqlite3", | ||||
|             "./xhr-sync-worker.js" | ||||
|           ], | ||||
|           "format": [ | ||||
|             "cjs" | ||||
|           ], | ||||
|           "assets": [ | ||||
|             { | ||||
|               "glob": "**/*", | ||||
|               "input": "apps/server/dist/node_modules", | ||||
|               "output": "node_modules" | ||||
|             }, | ||||
|             { | ||||
|               "glob": "**/*", | ||||
|               "input": "apps/server/dist/assets", | ||||
|               "output": "." | ||||
|             }, | ||||
|             { | ||||
|               "glob": "xhr-sync-worker.js", | ||||
|               "input": "apps/server/node_modules/jsdom/lib/jsdom/living/xhr", | ||||
|               "output": "" | ||||
|             } | ||||
|           ], | ||||
|           "declarationRootDir": "apps/desktop/src" | ||||
|         } | ||||
|       }, | ||||
|       "rebuild-deps": { | ||||
|         "executor": "nx:run-commands", | ||||
|         "dependsOn": [ | ||||
|   | ||||
| @@ -1,17 +1,21 @@ | ||||
| { | ||||
|   "extends": "../../tsconfig.base.json", | ||||
|   "compilerOptions": { | ||||
|     "module": "ESNext", | ||||
|     "moduleResolution": "bundler", | ||||
|     "target": "ES2020", | ||||
|     "outDir": "dist", | ||||
|     "strict": false, | ||||
|     "types": [ | ||||
|       "node", | ||||
|       "express" | ||||
|     ], | ||||
|     "rootDir": "src", | ||||
|     "tsBuildInfoFile": "dist/tsconfig.app.tsbuildinfo", | ||||
|     "verbatimModuleSyntax": false | ||||
|     "tsBuildInfoFile": "dist/tsconfig.app.tsbuildinfo" | ||||
|   }, | ||||
|   "include": [ | ||||
|     "src/**/*.ts" | ||||
|     "src/**/*.ts", | ||||
|     "../server/src/*.d.ts" | ||||
|   ], | ||||
|   "exclude": [ | ||||
|     "eslint.config.js", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user