Skip to content

Commit

Permalink
Merge pull request #19535 from storybookjs/chore/remove-git-repos-in-…
Browse files Browse the repository at this point in the history
…repro

Remove .git folder when generating repros
  • Loading branch information
shilman authored Oct 19, 2022
2 parents bd0c79d + e912b19 commit 8b140d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/next-repro-generators/generate-repros.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { command } from 'execa';
import type { Options as ExecaOptions } from 'execa';
import pLimit from 'p-limit';
import prettyTime from 'pretty-hrtime';
import { copy, emptyDir, ensureDir, move, rename, writeFile } from 'fs-extra';
import { copy, emptyDir, ensureDir, move, remove, rename, writeFile } from 'fs-extra';
import { program } from 'commander';
import { AbortController } from 'node-abort-controller';
import { directory } from 'tempy';
Expand Down Expand Up @@ -154,6 +154,9 @@ const runGenerators = async (
// Now move the created before dir into it's final location and add storybook
await move(createBeforeDir, beforeDir);

// Make sure there are no git projects in the folder
await remove(join(beforeDir, '.git'));

await addStorybook(baseDir, localRegistry, flags);

await addDocumentation(baseDir, { name, dirName });
Expand Down

0 comments on commit 8b140d2

Please sign in to comment.