sql-typechecker 0.0.20 → 0.0.21

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/out/cli.js CHANGED
@@ -243496,6 +243496,12 @@ async function go() {
243496
243496
  }
243497
243497
  await fs.appendFile(domainFile, `
243498
243498
  `, "utf-8");
243499
+ const tablesIndexFile = path.format({
243500
+ dir: outDir,
243501
+ name: "tables",
243502
+ ext: ".ts"
243503
+ });
243504
+ await prepOutFile(tablesIndexFile);
243499
243505
  await fs.mkdir(path.join(outDir, "tables"), {recursive: true});
243500
243506
  for (let table of g.tables) {
243501
243507
  const tableOutFile = path.format({
@@ -243507,6 +243513,8 @@ async function go() {
243507
243513
  const text = genCrudOperations(table);
243508
243514
  await fs.appendFile(tableOutFile, mkImportDomainsStatement(g.domains, tableOutFile, domainFile), "utf8");
243509
243515
  await fs.appendFile(tableOutFile, prettier.format(text, {parser: "typescript"}), "utf-8");
243516
+ await fs.appendFile(tablesIndexFile, `export * as ${table.name.name} from "./tables/${table.name.name}";
243517
+ `);
243510
243518
  }
243511
243519
  for (let f of allStatements) {
243512
243520
  const createFunctionStatements = f.statements.filter(isCreateFunctionStatement);