From cf9fd7a56da0c25bbc9af7d2f8bff2d95c0cd76d Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Sun, 7 Jun 2026 13:37:26 -0400 Subject: [PATCH] fix: fixes for running in docker --- convex/actions.ts | 2 +- convex/tsconfig.json | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 convex/tsconfig.json diff --git a/convex/actions.ts b/convex/actions.ts index 0f1f93b..9a10d68 100644 --- a/convex/actions.ts +++ b/convex/actions.ts @@ -1,6 +1,6 @@ "use node" -import { api } from "@/convex/_generated/api" +import { api } from "./_generated/api" import * as fs from "node:fs/promises" import * as fsSync from "node:fs" diff --git a/convex/tsconfig.json b/convex/tsconfig.json new file mode 100644 index 0000000..41bfbb9 --- /dev/null +++ b/convex/tsconfig.json @@ -0,0 +1,25 @@ +{ + /* This TypeScript project config describes the environment that + * Convex functions run in and is used to typecheck them. + * You can modify it, but some settings are required to use Convex. + */ + "compilerOptions": { + /* These settings are not required by Convex and can be modified. */ + "allowJs": true, + "strict": true, + "moduleResolution": "Bundler", + "jsx": "react-jsx", + "skipLibCheck": true, + "allowSyntheticDefaultImports": true, + + /* These compiler options are required by Convex */ + "target": "ESNext", + "lib": ["ES2023", "dom"], + "forceConsistentCasingInFileNames": true, + "module": "ESNext", + "isolatedModules": true, + "noEmit": true + }, + "include": ["./**/*"], + "exclude": ["./_generated"] +}