@cloudflare/realtimekit 0.5.0-staging.59 → 0.5.0-staging.61

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.
@@ -0,0 +1,13 @@
1
+ import { defineConfig } from 'vite';
2
+
3
+ export default defineConfig({
4
+ build: {
5
+ emptyOutDir: false,
6
+ lib: {
7
+ entry: 'src/mock.ts',
8
+ formats: ['cjs', 'es'],
9
+ fileName: (format) => `mock.${format}.js`
10
+ },
11
+ target: 'es2015'
12
+ },
13
+ });
package/build-types.sh CHANGED
@@ -19,6 +19,7 @@ trap restore EXIT
19
19
 
20
20
  npx tsup src/index.ts --external @protobuf-ts/runtime,worker-timers,bowser,lodash-es,sdp-transform --dts-resolve --dts-only --format esm
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
+ npx tsup src/mock.ts --external @protobuf-ts/runtime,worker-timers,bowser,lodash-es,sdp-transform --dts-resolve --dts-only --format esm
22
23
 
23
24
  # temp hack till we replace dyte completely with realtimekit
24
25
  OS="$(uname)"
@@ -33,4 +34,4 @@ else
33
34
  fi
34
35
 
35
36
  # Find and process all .d.ts files
36
- find dist/ -name '*.d.ts' -exec bash -c "$SED_CMD \"{}\"" \;
37
+ find dist/ -name '*.d.ts' -exec bash -c "$SED_CMD \"{}\"" \;