@dbml/cli 5.6.0-alpha.2 → 5.6.0-alpha.3

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.
package/lib/index.js CHANGED
@@ -1145,7 +1145,10 @@ async function importHandler(program$1) {
1145
1145
  console.log(` ${chalk.default.green(figures.default.main.tick)} Generated DBML file from SQL file (${config_default[format$1].name}): ${path.default.basename(opts.outFile)}`);
1146
1146
  }
1147
1147
  } catch (error) {
1148
- if ("diags" in error) logger_default.error(`\n ${error.diags.map((diag) => new syntaxError_default(diag.filepath, diag)).map(({ message }) => message).join("\n ")}`);
1148
+ if ("diags" in error) {
1149
+ logger_default.error(`\n ${error.diags.map((diag) => new syntaxError_default(diag.filepath, diag)).map(({ message }) => message).join("\n ")}`);
1150
+ return;
1151
+ }
1149
1152
  throw error;
1150
1153
  }
1151
1154
  }
@@ -1188,7 +1191,7 @@ async function connectionHandler(program$1) {
1188
1191
  }
1189
1192
  const $schema = "https://json.schemastore.org/package";
1190
1193
  const name = "@dbml/cli";
1191
- const version = "5.6.0-alpha.2";
1194
+ const version = "5.6.0-alpha.3";
1192
1195
  const description = "";
1193
1196
  const main = "lib/index.js";
1194
1197
  const license = "Apache-2.0";
@@ -1225,7 +1228,7 @@ const dependencies = {
1225
1228
  "strip-ansi": "^5.2.0",
1226
1229
  "winston": "^3.2.1"
1227
1230
  };
1228
- const gitHead = "1c7351657e2fc9dffcdf96770c79ac8a333f6f76";
1231
+ const gitHead = "2a15d92708e3cd155e7d4dcf87395c6e54aca0db";
1229
1232
  const engines = { "node": ">=18" };
1230
1233
  var package_default = {
1231
1234
  $schema,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@dbml/cli",
4
- "version": "5.6.0-alpha.2",
4
+ "version": "5.6.0-alpha.3",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "strip-ansi": "^5.2.0",
44
44
  "winston": "^3.2.1"
45
45
  },
46
- "gitHead": "1c7351657e2fc9dffcdf96770c79ac8a333f6f76",
46
+ "gitHead": "2a15d92708e3cd155e7d4dcf87395c6e54aca0db",
47
47
  "engines": {
48
48
  "node": ">=18"
49
49
  }
package/src/cli/import.js CHANGED
@@ -33,6 +33,7 @@ export default async function importHandler (program) {
33
33
  } catch (error) {
34
34
  if ('diags' in error) {
35
35
  logger.error(`\n ${error.diags.map((diag) => new SyntaxError(diag.filepath, diag)).map(({ message }) => message).join('\n ')}`);
36
+ return;
36
37
  }
37
38
  throw error;
38
39
  }