This commit is contained in:
TrèsAbhi committed 2025-11-12 10:22:27 -06:00
1 parent 975d579d21
commit e063719caa
1 file changed
+3 -1
+3 -1
View File
@@ -14,6 +14,8 @@ const exec = promisify(execSync);
let executableFileExtension: string; let executableFileExtension: string;
console.log(await readdir("node_modules/.bin"));
if (existsSync("node_modules/.bin/protoc-gen-ts_proto.exe")) { if (existsSync("node_modules/.bin/protoc-gen-ts_proto.exe")) {
executableFileExtension = ".exe"; executableFileExtension = ".exe";
} else { } else {
@@ -32,7 +34,7 @@ for (const root of roots) {
while (files.length > 0) { while (files.length > 0) {
let command = [ let command = [
"protoc", "protoc",
`--plugin=./node_modules/.bin/protoc-gen-ts_proto${executableFileExtension}`, `--plugin=node_modules/.bin/protoc-gen-ts_proto${executableFileExtension}`,
"--ts_proto_opt=esModuleInterop=true", "--ts_proto_opt=esModuleInterop=true",
"--ts_proto_opt=oneof=unions-value", "--ts_proto_opt=oneof=unions-value",
// "--ts_proto_opt=removeEnumPrefix=true", // "--ts_proto_opt=removeEnumPrefix=true",