Skip to content

Build your personal knowledge base with Trilium Notes

chore(dx/server): get server to run up to missing public server

Elian Doran63c0841c32b3
diff --git a/apps/server/package.json b/apps/server/package.json
index a36d33d01e..d9232fca45 100644
--- a/apps/server/package.json
+++ b/apps/server/package.json
@@ -360,17 +360,8 @@
}
}
},
- "exports": {
- "./package.json": "./package.json",
- "./src/*": "./src/*",
- ".": {
- "development": "./src/main.ts",
- "types": "./dist/main.d.ts",
- "import": "./dist/main.js",
- "default": "./dist/main.js"
- }
+ "scripts": {
+ "dev": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=data TRILIUM_RESOURCE_DIR=src tsx watch ./src/main.ts"
},
- "types": "./dist/main.d.ts",
- "module": "./dist/main.js",
- "main": "./dist/main.js"
+ "main": "./src/main.ts"
}
\ No newline at end of file
diff --git a/packages/commons/package.json b/packages/commons/package.json
index eff04806ce..8b9be2e0ab 100644
--- a/packages/commons/package.json
+++ b/packages/commons/package.json
@@ -4,18 +4,7 @@
"description": "Shared library between the clients (e.g. browser, Electron) and the server, mostly for type definitions and utility methods.",
"private": true,
"type": "module",
- "main": "./dist/main.js",
- "module": "./dist/main.js",
- "types": "./dist/index.d.ts",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "development": "./src/index.ts",
- "types": "./dist/index.d.ts",
- "import": "./dist/main.js",
- "default": "./dist/main.js"
- }
- },
+ "main": "./src/index.ts",
"license": "AGPL-3.0-only",
"author": {
"name": "Trilium Notes Team",
diff --git a/packages/express-partial-content/package.json b/packages/express-partial-content/package.json
index d4a78437be..437e4d40ff 100644
--- a/packages/express-partial-content/package.json
+++ b/packages/express-partial-content/package.json
@@ -5,18 +5,7 @@
"version": "1.1.0",
"type": "module",
"private": true,
- "main": "./dist/main.js",
- "module": "./dist/main.js",
- "types": "./dist/index.d.ts",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "development": "./src/index.ts",
- "types": "./dist/index.d.ts",
- "import": "./dist/main.js",
- "default": "./dist/main.js"
- }
- },
+ "main": "./src/index.ts",
"keywords": [
"partial-content",
"206",
diff --git a/packages/turndown-plugin-gfm/package.json b/packages/turndown-plugin-gfm/package.json
index c50bbb1ba0..1c9d2ab054 100644
--- a/packages/turndown-plugin-gfm/package.json
+++ b/packages/turndown-plugin-gfm/package.json
@@ -5,18 +5,7 @@
"author": "Dom Christie",
"private": true,
"type": "module",
- "main": "./dist/index.js",
- "module": "./dist/index.js",
- "types": "./dist/index.d.ts",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "development": "./src/index.js",
- "types": "./dist/index.d.ts",
- "import": "./dist/index.js",
- "default": "./dist/index.js"
- }
- },
+ "main": "./src/index.js",
"gitHead": "05a29b450962bf05a8642bbd39446a1f679a96ba",
"license": "MIT",
"repository": {