create-githat-app 1.2.0 → 1.2.2

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.
Files changed (2) hide show
  1. package/dist/cli.js +8 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import gradient from "gradient-string";
11
11
  import chalk from "chalk";
12
12
 
13
13
  // src/constants.ts
14
- var VERSION = "1.2.0";
14
+ var VERSION = "1.2.1";
15
15
  var DEFAULT_API_URL = "https://api.githat.io";
16
16
  var DASHBOARD_URL = "https://githat.io/dashboard/apps";
17
17
  var BRAND_COLORS = ["#7c3aed", "#6366f1", "#8b5cf6"];
@@ -299,6 +299,9 @@ async function promptGitHat(existingKey) {
299
299
  process.exit(0);
300
300
  }
301
301
  publishableKey = pastedKey || "";
302
+ } else if (connectChoice === "skip") {
303
+ p3.log.info("Your app will work on localhost without a key!");
304
+ p3.log.info("For production, get your key at https://githat.io/dashboard/apps");
302
305
  }
303
306
  }
304
307
  const authFeatures = await p3.multiselect({
@@ -428,7 +431,7 @@ import path from "path";
428
431
  import { fileURLToPath } from "url";
429
432
  var __filename2 = fileURLToPath(import.meta.url);
430
433
  var __dirname2 = path.dirname(__filename2);
431
- var TEMPLATES_ROOT = path.resolve(__dirname2, "..", "..", "templates");
434
+ var TEMPLATES_ROOT = path.resolve(__dirname2, "..", "templates");
432
435
  Handlebars.registerHelper("ifEquals", function(a, b, options) {
433
436
  return a === b ? options.fn(this) : options.inverse(this);
434
437
  });
@@ -578,9 +581,10 @@ async function scaffold(context, options) {
578
581
  fs3.ensureDirSync(root);
579
582
  const templatesRoot = getTemplatesRoot();
580
583
  const frameworkDir = path3.join(templatesRoot, context.framework);
581
- if (fs3.existsSync(frameworkDir)) {
582
- renderTemplateDirectory(frameworkDir, root, context);
584
+ if (!fs3.existsSync(frameworkDir)) {
585
+ throw new Error(`Templates not found at ${frameworkDir}. This is a bug \u2014 please report it.`);
583
586
  }
587
+ renderTemplateDirectory(frameworkDir, root, context);
584
588
  const baseDir = path3.join(templatesRoot, "base");
585
589
  if (fs3.existsSync(baseDir)) {
586
590
  renderTemplateDirectory(baseDir, root, context);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-githat-app",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Scaffold enterprise-grade apps with GitHat identity — for humans, AI agents, and MCP servers",
5
5
  "type": "module",
6
6
  "bin": {