Skip to content

Build your personal knowledge base with Trilium Notes

fix(build): ensure projects are discovered by ignoring parent .gitignore rules

Jakob Schlanstedtefb0050e5794
diff --git a/.gitignore b/.gitignore
index ecb8c9edf8..229b106e37 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,11 @@
# See https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
+# Workaround for Nx bug: parent .gitignore files with '*' can cause
+# `nx show projects` to return nothing by ignoring subprojects.
+# See: https://github.com/nrwl/nx/issues/27368
+# Unignore everything to ensure Nx detects all projects
+!*
+
# compiled output
dist
tmp
@@ -45,4 +51,4 @@ upload
.rollup.cache
*.tsbuildinfo
-/result
\ No newline at end of file
+/result