tthr 0.0.40 → 0.0.41

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/index.js +14 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -78,10 +78,16 @@ async function deploySchemaToServer(projectId, token, schemaPath, environment, d
78
78
  `));
79
79
  return;
80
80
  }
81
+ console.log(chalk.dim(` Schema path: ${schemaPath}`));
81
82
  const schemaSource = await fs.readFile(schemaPath, "utf-8");
83
+ console.log(chalk.dim(` Schema source length: ${schemaSource.length} chars`));
84
+ console.log(chalk.dim(` Parsing schema...`));
82
85
  const tables = parseSchema(schemaSource);
86
+ console.log(chalk.dim(` Parsed ${tables.length} tables`));
83
87
  spinner.text = `Found ${tables.length} table(s)`;
88
+ console.log(chalk.dim(` Generating SQL...`));
84
89
  const sql = generateSchemaSQL(tables);
90
+ console.log(chalk.dim(` Generated SQL length: ${sql.length} chars`));
85
91
  if (dryRun) {
86
92
  spinner.info("Dry run - would deploy schema:");
87
93
  for (const table of tables) {
@@ -129,7 +135,14 @@ async function deploySchemaToServer(projectId, token, schemaPath, environment, d
129
135
  spinner.succeed(`Schema deployed (${tables.length} table(s))`);
130
136
  } catch (error) {
131
137
  spinner.fail("Failed to deploy schema");
132
- console.error(chalk.red(error instanceof Error ? error.message : "Unknown error"));
138
+ if (error instanceof Error) {
139
+ console.error(chalk.red(error.message));
140
+ if (error.stack) {
141
+ console.error(chalk.dim(error.stack));
142
+ }
143
+ } else {
144
+ console.error(chalk.red("Unknown error:"), error);
145
+ }
133
146
  }
134
147
  }
135
148
  async function deployFunctionsToServer(projectId, token, functionsDir, environment, dryRun) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tthr",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "Tether CLI - project scaffolding and deployment",
5
5
  "type": "module",
6
6
  "bin": {