diff --git a/dev-scripts/generate-proto.mjs b/dev-scripts/generate-proto.mjs index 769bd33..4ae69e9 100644 --- a/dev-scripts/generate-proto.mjs +++ b/dev-scripts/generate-proto.mjs @@ -45,7 +45,7 @@ if (!protoFiles.length) { } protoFiles.forEach((file) => { - const command = `protoc --proto_path=${protoDir} --plugin=protoc-gen-ts=${protocGenTs} --ts_opt=env=browser --ts_opt=importSuffix=.js --ts_out=${outDir} --ts_opt=outputJsonMethods=false --ts_opt=outputPartialMethods=false ${file}`; + const command = `protoc --proto_path=${protoDir} --plugin=protoc-gen-ts=${protocGenTs} --ts_opt=env=browser --ts_opt=importSuffix=.js --ts_out=${outDir} --ts_opt=outputJsonMethods=false --ts_opt=outputPartialMethods=false --ts_opt=removeEnumPrefix=true ${file}`; exec(command, (error, _stdout, stderr) => { if (error) { console.error(`Error compiling ${file}:`, stderr); diff --git a/examples/onesie-request/main.ts b/examples/onesie-request/main.ts index 0770111..e9c0c66 100644 --- a/examples/onesie-request/main.ts +++ b/examples/onesie-request/main.ts @@ -245,7 +245,7 @@ async function getBasicInfo(innertube: Innertube, videoId: string): Promise