From e30ed4c51bd0c1595cd35346de13a19285c23f4c Mon Sep 17 00:00:00 2001 From: aoife cassidy Date: Thu, 14 Nov 2024 01:32:03 +0200 Subject: [PATCH] sed --- packages/javascript/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/javascript/package.json b/packages/javascript/package.json index b01e0d95..6995304d 100644 --- a/packages/javascript/package.json +++ b/packages/javascript/package.json @@ -26,7 +26,7 @@ "generate:version:cjs": "genversion --semi src/gen/cjs/version.js", "generate:version": "pnpm generate:version:esm && pnpm generate:version:cjs", "generate:proto:esm": "mkdir -p src/gen/esm && protoc --es_out src/gen/esm --es_opt target=js -I=../../protobufs ../../protobufs/livekit_*.proto", - "generate:proto:cjs": "mkdir -p src/gen/cjs && protoc --es_out src/gen/cjs --es_opt target=js --es_opt js_import_style=legacy_commonjs -I=../../protobufs ../../protobufs/livekit_*.proto && rename \"s/js$/cjs/\" src/gen/cjs/*.js", + "generate:proto:cjs": "mkdir -p src/gen/cjs && protoc --es_out src/gen/cjs --es_opt target=js,js_import_style=legacy_commonjs -I=../../protobufs ../../protobufs/livekit_*.proto && rename \"s/js$/cjs/\" src/gen/cjs/*.js && sed -i 's/\\.js\")/.cjs\")/' src/gen/cjs/*.cjs", "generate:proto:dts": "protoc --es_out src/gen/dts --es_opt target=dts -I=../../protobufs ../../protobufs/livekit_*.proto", "generate:proto": "pnpm generate:proto:esm && pnpm generate:proto:cjs && pnpm generate:proto:dts", "build": "pnpm generate:version && pnpm generate:proto"