Skip to content

Build your personal knowledge base with Trilium Notes

fix(server/esbuild): node_modules not copied

Elian Dorandac801b3697a
diff --git a/.nxignore b/.nxignore
index 6c71a87587..bac1baa0e4 100644
--- a/.nxignore
+++ b/.nxignore
@@ -3,4 +3,5 @@ _regroup_monorepo
# Asset copying respects .gitignore / .nxignore for some reason.
# See https://github.com/nrwl/nx/issues/20309
-!dist
\ No newline at end of file
+!dist
+!node_modules
\ No newline at end of file
diff --git a/apps/server/package.json b/apps/server/package.json
index db10545dc0..cd7f873964 100644
--- a/apps/server/package.json
+++ b/apps/server/package.json
@@ -216,6 +216,21 @@
"glob": "**/*",
"input": "apps/client/dist",
"output": "public"
+ },
+ {
+ "glob": "**/*",
+ "input": "apps/server/node_modules/better-sqlite3",
+ "output": "node_modules/better-sqlite3"
+ },
+ {
+ "glob": "**/*",
+ "input": "apps/server/node_modules/bindings",
+ "output": "node_modules/bindings"
+ },
+ {
+ "glob": "**/*",
+ "input": "apps/server/node_modules/file-uri-to-path",
+ "output": "node_modules/file-uri-to-path"
}
]
}