fix(react-native): remove trailing "/" in generated .gitignore (#10827)

This "/" ended up being added in root .gitignore file, adding the whole project as "ignored".
This commit is contained in:
Alexis CHAPPRON 2022-06-21 16:24:15 +02:00 committed by GitHub
parent a7888552b8
commit 1d8369b646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ export function addGitIgnoreEntry(host: Tree) {
ig.add(host.read('.gitignore', 'utf-8'));
if (!ig.ignores('apps/example/ios/Pods/Folly')) {
content = `${content}\n${gitIgnoreEntriesForReactNative}/\n`;
content = `${content}\n${gitIgnoreEntriesForReactNative}\n`;
}
// also ignore nested node_modules folders due to symlink for React Native