File tree Expand file tree Collapse file tree 9 files changed +30
-30
lines changed
Expand file tree Collapse file tree 9 files changed +30
-30
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ import { WebSocketServer } from "ws";
55import * as trpcExpress from "@trpc/server/adapters/express" ;
66
77import { createSetupWSConnection } from "./yjs/yjs-setupWS" ;
8- import { bindState , writeState } from "./yjs-blob" ;
8+ import { bindState , writeState } from "./yjs/yjs -blob" ;
99
1010import cors from "cors" ;
11- import { appRouter } from "./trpc" ;
11+ import { appRouter } from "./spawner/ trpc" ;
1212
1313export async function startServer ( { port, blobDir } ) {
1414 console . log ( "starting server .." ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { writeFileSync } from "fs";
33import net from "net" ;
44import http from "http" ;
55
6- import { startServer } from "./runtime/server" ;
6+ import { startServer } from ".. /runtime/server" ;
77
88type KernelInfo = {
99 // the kernel
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import WebSocket from "ws";
88import { z } from "zod" ;
99
1010// import { WebsocketProvider } from "../../ui/src/lib/y-websocket";
11- import { WebsocketProvider } from "./y-websocket" ;
11+ import { WebsocketProvider } from "../yjs /y-websocket" ;
1212
1313import { killRuntime , spawnRuntime } from "./spawner_native" ;
1414
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11{
2+ "compilerOptions" : {
3+ "module" : " commonjs" ,
4+ "outDir" : " ./build" ,
5+ "target" : " esnext" ,
6+ "allowJs" : true ,
7+ "allowSyntheticDefaultImports" : true ,
8+ "esModuleInterop" : true ,
9+ "lib" : [" esnext" ],
10+ "moduleResolution" : " node" ,
11+ "noFallthroughCasesInSwitch" : true ,
12+ "resolveJsonModule" : true ,
13+ "skipLibCheck" : true ,
14+ "strict" : true ,
15+ "isolatedModules" : true ,
16+ "noImplicitAny" : false
17+ },
18+ "ts-node" : {
19+ // these options are overrides used only by ts-node
20+ // same as the --compilerOptions flag and the TS_NODE_COMPILER_OPTIONS environment variable
221 "compilerOptions" : {
3- "module" : " commonjs" ,
4- "outDir" : " ./build" ,
5- "target" : " esnext" ,
6- "allowJs" : true ,
7- "allowSyntheticDefaultImports" : true ,
8- "esModuleInterop" : true ,
9- "lib" : [" esnext" ],
10- "moduleResolution" : " node" ,
11- "noFallthroughCasesInSwitch" : true ,
12- "resolveJsonModule" : true ,
13- "skipLibCheck" : true ,
14- "strict" : true ,
15- "isolatedModules" : true ,
16- "noImplicitAny" : false ,
17- },
18- "ts-node" : {
19- // these options are overrides used only by ts-node
20- // same as the --compilerOptions flag and the TS_NODE_COMPILER_OPTIONS environment variable
21- "compilerOptions" : {
22- "module" : " commonjs"
23- }
24- },
25- "include" : [" src" ]
26- }
22+ "module" : " commonjs"
23+ }
24+ },
25+ "include" : [" src" , " src/yjs/y-websocket.js" ]
26+ }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { produce } from "immer";
66import { Doc , Transaction } from "yjs" ;
77import * as Y from "yjs" ;
88// import { WebsocketProvider } from "../y-websocket";
9- import { WebsocketProvider } from "../../../../api/src/y-websocket" ;
9+ import { WebsocketProvider } from "../../../../api/src/yjs/ y-websocket" ;
1010import { addAwarenessStyle } from "../utils/utils" ;
1111import { MyState , Pod } from "." ;
1212
Original file line number Diff line number Diff line change 11import { createTRPCReact } from "@trpc/react-query" ;
2- import type { AppRouter } from "../../../api/src/trpc" ;
2+ import type { AppRouter } from "../../../api/src/spawner/ trpc" ;
33export const trpc = createTRPCReact < AppRouter > ( ) ;
You can’t perform that action at this time.
0 commit comments