diff --git a/scripts/next-repro-generators/generate-repros.ts b/scripts/next-repro-generators/generate-repros.ts index 20d11699d35a..9a02a5cc5c25 100755 --- a/scripts/next-repro-generators/generate-repros.ts +++ b/scripts/next-repro-generators/generate-repros.ts @@ -150,7 +150,7 @@ const runGenerators = async ( // where as others are very picky about what directories can be called. So we need to // handle different modes of operation. if (script.includes('{{beforeDir}}')) { - const scriptWithBeforeDir = script.replace('{{beforeDir}}', BEFORE_DIR_NAME); + const scriptWithBeforeDir = script.replaceAll('{{beforeDir}}', BEFORE_DIR_NAME); await runCommand( scriptWithBeforeDir, {