Use explicit .ts extensions for Node-compatible imports
Node's --experimental-strip-types requires explicit .ts extensions on relative imports. Add allowImportingTsExtensions to both app tsconfigs and update server-side imports in planner and journal for consistency. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1abcc5c804
commit
4d73de4e0d
8 changed files with 9 additions and 7 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import { randomUUID } from "node:crypto";
|
||||
import * as Y from "yjs";
|
||||
import { eq, and, desc, lt } from "drizzle-orm";
|
||||
import { getOrCreateDoc, deleteDoc } from "./yjs-server";
|
||||
import { getDb } from "./db";
|
||||
import { getOrCreateDoc, deleteDoc } from "./yjs-server.ts";
|
||||
import { getDb } from "./db.ts";
|
||||
import { sessions } from "@trails-cool/db/schema/planner";
|
||||
|
||||
export type SessionMetadata = typeof sessions.$inferSelect;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { WebSocketServer, type WebSocket } from "ws";
|
||||
import * as Y from "yjs";
|
||||
import type { IncomingMessage, Server } from "node:http";
|
||||
import { saveSessionState, loadSessionState, touchSession } from "./sessions";
|
||||
import { saveSessionState, loadSessionState, touchSession } from "./sessions.ts";
|
||||
|
||||
const docs = new Map<string, Y.Doc>();
|
||||
const sessionClients = new Map<string, Set<WebSocket>>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue