diff --git a/src/scripts/generate_proto_ts.ts b/src/scripts/generate_proto_ts.ts index 9d8408ad..de01ba7f 100644 --- a/src/scripts/generate_proto_ts.ts +++ b/src/scripts/generate_proto_ts.ts @@ -74,7 +74,7 @@ function generateProtobufTs() { function generateStudyProtoPatch() { fs.writeFileSync( - `${protoDir}/study.protobuf-ts.patch`, + `${protoDir}/study.proto.protobuf-ts.patch`, execSync(`git diff ${protoDir}/study.proto`, { encoding: 'buffer', }), @@ -82,14 +82,14 @@ function generateStudyProtoPatch() { } function gitApplyStudyProtoPatch() { - execSync(`git apply ${protoDir}/study.protobuf-ts.patch`, { + execSync(`git apply ${protoDir}/study.proto.protobuf-ts.patch`, { cwd: protoDir, stdio: 'inherit', }); } function gitRevertStudyProtoPatch() { - execSync(`git apply -R ${protoDir}/study.protobuf-ts.patch`, { + execSync(`git apply -R ${protoDir}/study.proto.protobuf-ts.patch`, { cwd: protoDir, stdio: 'inherit', });