Skip to content

Build your personal knowledge base with Trilium Notes

fix(commons): not importable due to wrong meta

Elian Doranc4e10b6eba92
diff --git a/packages/commons/package.json b/packages/commons/package.json
index 045e8902e9..116d182e95 100644
--- a/packages/commons/package.json
+++ b/packages/commons/package.json
@@ -4,16 +4,16 @@
"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/index.js",
- "module": "./dist/index.js",
+ "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/index.js",
- "default": "./dist/index.js"
+ "import": "./dist/main.js",
+ "default": "./dist/main.js"
}
},
"license": "AGPL-3.0-only",