@cloudflare/realtimekit 0.5.0-staging.55 → 0.5.0-staging.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build-types.sh CHANGED
@@ -21,4 +21,16 @@ npx tsup src/index.ts --external @protobuf-ts/runtime,worker-timers,bowser,lodas
21
21
  npx tsup src/react.ts --external @protobuf-ts/runtime,worker-timers,bowser,lodash-es,sdp-transform --dts-resolve --dts-only --format esm
22
22
 
23
23
  # temp hack till we replace dyte completely with realtimekit
24
- find dist/ -name '*.d.ts' -exec sed -i '' '/#private;/d' {} +
24
+ OS="$(uname)"
25
+ SED_CMD=""
26
+
27
+ if [[ "$OS" == "Darwin" ]]; then
28
+ # macOS (BSD sed requires backup extension or '')
29
+ SED_CMD="sed -i '' '/#private;/d'"
30
+ else
31
+ # Linux (GNU sed)
32
+ SED_CMD="sed -i '/#private;/d'"
33
+ fi
34
+
35
+ # Find and process all .d.ts files
36
+ find dist/ -name '*.d.ts' -exec bash -c "$SED_CMD \"{}\"" \;