Skip to content

Commit cfbdccf

Browse files
author
Andrew Pennebaker
authored
fix gitignore syntax
Some .gitignore parsers interpret directory vs non-directory patterns strictly (e.g. monochromegane/go-gitignore), so a `node_modules` pattern would not necessarily match against a real `node_modules` directory. It's generally safe to add a trailing slash to directory .gitignore patterns.
1 parent ef033de commit cfbdccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Node.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ coverage
2828
build/Release
2929

3030
# Dependency directories
31-
node_modules
32-
jspm_packages
31+
node_modules/
32+
jspm_packages/
3333

3434
# Optional npm cache directory
3535
.npm

0 commit comments

Comments
 (0)