Skip to content

Commit

Permalink
Fix proto gen
Browse files Browse the repository at this point in the history
  • Loading branch information
atuchin-m committed Nov 6, 2024
1 parent 7df5791 commit b95bfc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/generate_proto_ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,22 @@ 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',
}),
);
}

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',
});
Expand Down

0 comments on commit b95bfc2

Please sign in to comment.