We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e1be40 commit 83db2d4Copy full SHA for 83db2d4
packages/shared/src/cli/commands/generate-types.ts
@@ -1,3 +1,4 @@
1
+import fs from "node:fs";
2
import path from "node:path";
3
import { Command } from "commander";
4
@@ -21,6 +22,12 @@ async function runGenerateTypes(
21
22
outFile || path.join(process.cwd(), "client/src/appKitTypes.d.ts");
23
24
const queryFolder = path.join(resolvedRootDir, "config/queries");
25
+ if (!fs.existsSync(queryFolder)) {
26
+ console.warn(
27
+ `Warning: No queries found at ${queryFolder}. Skipping type generation.`,
28
+ );
29
+ return;
30
+ }
31
32
const resolvedWarehouseId =
33
warehouseId || process.env.DATABRICKS_WAREHOUSE_ID;
0 commit comments