Compare commits

...

2 Commits

Author SHA1 Message Date
Sarah Fortune 7a898528e9 Update build-proto.js 2025-06-17 10:33:33 -10:00
Sarah Fortune 7fd85e35d7 Fix windows build
Revert changes to ts proto plugin path on windows.
2025-06-17 13:18:37 -07:00
+4 -1
View File
@@ -21,7 +21,10 @@ const NICE_JS_OUT_DIR = path.join(ROOT_DIR, "src/generated/nice-grpc")
const DESCRIPTOR_OUT_DIR = path.join(ROOT_DIR, "dist-standalone/proto")
const isWindows = process.platform === "win32"
const TS_PROTO_PLUGIN = require.resolve("ts-proto/protoc-gen-ts_proto") + (isWindows ? ".cmd" : "")
const TS_PROTO_PLUGIN = isWindows
? path.join(ROOT_DIR, "node_modules", ".bin", "protoc-gen-ts_proto.cmd") // Use the .bin directory path for Windows
: require.resolve("ts-proto/protoc-gen-ts_proto")
const TS_PROTO_OPTIONS = [
"env=node",
"esModuleInterop=true",