Skip to content

Commit

Permalink
Merge pull request #29124 from 3w36zj6/feature/ensure-gitignore-updat…
Browse files Browse the repository at this point in the history
…ed-via-cli-ends-with-a-newline

Ensure `.gitignore` updated via CLI ends with a newline
  • Loading branch information
kasperpeulen authored Sep 24, 2024
2 parents 58cca8d + 9a059d9 commit 8333cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/create-storybook/src/initiate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export async function doInitiate(options: CommandOptions): Promise<
if (foundGitIgnoreFile && foundGitIgnoreFile.includes(rootDirectory)) {
const contents = await readFile(foundGitIgnoreFile, 'utf-8');
if (!contents.includes('*storybook.log')) {
await appendFile(foundGitIgnoreFile, '\n*storybook.log');
await appendFile(foundGitIgnoreFile, '\n*storybook.log\n');
}
}

Expand Down

0 comments on commit 8333cde

Please sign in to comment.