@bagelink/sdk 1.7.101 → 1.8.3

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/bin/index.ts CHANGED
@@ -23,6 +23,22 @@ export async function loadTypes() {
23
23
  const apiPath = join(bagelinkDir, 'api.ts')
24
24
  await formatAndWriteCode(apiPath, code)
25
25
 
26
+ // Copy streamClient utilities to generated directory
27
+ const streamClientSource = join(__dirname, '../src/openAPITools/streamClient.ts')
28
+ const streamClientDest = join(bagelinkDir, 'streamClient.ts')
29
+ if (fs.existsSync(streamClientSource)) {
30
+ const streamClientCode = fs.readFileSync(streamClientSource, 'utf-8')
31
+ await formatAndWriteCode(streamClientDest, streamClientCode)
32
+ }
33
+
34
+ // Copy StreamController to generated directory
35
+ const streamControllerSource = join(__dirname, '../src/openAPITools/StreamController.ts')
36
+ const streamControllerDest = join(bagelinkDir, 'StreamController.ts')
37
+ if (fs.existsSync(streamControllerSource)) {
38
+ const streamControllerCode = fs.readFileSync(streamControllerSource, 'utf-8')
39
+ await formatAndWriteCode(streamControllerDest, streamControllerCode)
40
+ }
41
+
26
42
  const indexPath = join(bagelinkDir, 'index.ts')
27
43
  await formatAndWriteCode(indexPath, `export * from './api'\nexport * from './types.d'`)
28
44