Skip to content

Commit 10e063b

Browse files
authored
Merge pull request #2285 from werererer/fix/nx-project-discovery
fix(build): fix Nx project discovery issue caused by parent .gitignore
2 parents 6876337 + 2fe34b1 commit 10e063b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# See https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
22

3+
# Workaround for Nx bug: parent .gitignore files with '*' can cause
4+
# `nx show projects` to return nothing by ignoring subprojects.
5+
# See: https://github.com/nrwl/nx/issues/27368
6+
# Unignore everything to ensure Nx detects all projects
7+
!*
8+
39
# compiled output
410
dist
511
tmp
@@ -45,4 +51,4 @@ upload
4551
.rollup.cache
4652
*.tsbuildinfo
4753

48-
/result
54+
/result

0 commit comments

Comments
 (0)